Skip to content

Commit acf46a7

Browse files
committed
IFP pointer is inserted to map if IFP is loaded sucessfully
1 parent df06f10 commit acf46a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ int CLuaEngineDefs::EngineLoadIFP ( lua_State* luaVM )
312312
// Try to load the IFP file
313313
if ( pIFP->LoadIFP ( strPath, strBlockName ) )
314314
{
315+
// We can use the map to retrieve correct IFP by block name later
316+
g_pClientGame->InsertIFPPointerToMap ( strBlockName, pIFP );
317+
315318
// Success loading the file. Set parent to IFP root
316319
pIFP->SetParent ( pRoot );
317320

0 commit comments

Comments
 (0)