1.1 --- a/core/smn_datapacks.cpp Fri Jul 27 04:37:00 2007 +0000
1.2 +++ b/core/smn_datapacks.cpp Fri Jul 27 15:45:15 2007 +0000
1.3 @@ -25,7 +25,16 @@
1.4 public:
1.5 void OnSourceModAllInitialized()
1.6 {
1.7 - g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, NULL, NULL, g_pCoreIdent, NULL);
1.8 + HandleAccess hacc;
1.9 + TypeAccess tacc;
1.10 +
1.11 + g_HandleSys.InitAccessDefaults(&tacc, &hacc);
1.12 + tacc.access[HTypeAccess_Create] = true;
1.13 + tacc.access[HTypeAccess_Inherit] = true;
1.14 + tacc.ident = g_pCoreIdent;
1.15 + hacc.access[HandleAccess_Read] = HANDLE_RESTRICT_OWNER;
1.16 +
1.17 + g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, &tacc, &hacc, g_pCoreIdent, NULL);
1.18 }
1.19 void OnSourceModShutdown()
1.20 {