File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -281,13 +281,13 @@ int CLuaEngineDefs::EngineLoadTXD ( lua_State* luaVM )
281281
282282int CLuaEngineDefs::EngineLoadIFP ( lua_State* luaVM )
283283{
284- SString strFile = " " ;
285- bool bFilteringEnabled = true ;
284+ SString strFile = " " ;
285+ SString strBlockName = " " ;
286+
286287 CScriptArgReader argStream ( luaVM );
287- // Grab the TXD filename or data
288+ // Grab the IFP filename or data
288289 argStream.ReadString ( strFile );
289- if ( argStream.NextIsBool () ) // Some scripts have a number here (in error)
290- argStream.ReadBool ( bFilteringEnabled, true );
290+ argStream.ReadString ( strBlockName );
291291
292292 if ( !argStream.HasErrors ( ) )
293293 {
@@ -310,7 +310,7 @@ int CLuaEngineDefs::EngineLoadIFP ( lua_State* luaVM )
310310 CClientIFP* pIFP = new CClientIFP ( m_pManager, INVALID_ELEMENT_ID );
311311
312312 // Try to load the IFP file
313- if ( pIFP->LoadIFP ( strPath ) )
313+ if ( pIFP->LoadIFP ( strPath, strBlockName ) )
314314 {
315315 // Success loading the file. Set parent to IFP root
316316 pIFP->SetParent ( pRoot );
You can’t perform that action at this time.
0 commit comments