diff --git a/MTA10/mods/shared_logic/lua/CLuaMain.cpp b/MTA10/mods/shared_logic/lua/CLuaMain.cpp index dcf01fdcad1..67d1567ab6f 100644 --- a/MTA10/mods/shared_logic/lua/CLuaMain.cpp +++ b/MTA10/mods/shared_logic/lua/CLuaMain.cpp @@ -168,6 +168,7 @@ void CLuaMain::AddElementClass ( lua_State* luaVM ) lua_classfunction ( luaVM, "isCallPropagationEnabled", "isElementCallPropagationEnabled" ); lua_classfunction ( luaVM, "isWaitingForGroundToLoad", "isElementWaitingForGroundToLoad" ); lua_classfunction ( luaVM, "isOnScreen", "isElementOnScreen" ); + lua_classfunction ( luaVM, "isStreamedIn", "isElementStreamedIn" ); lua_classfunction ( luaVM, "isStreamable", "isElementStreamable" ); lua_classfunction ( luaVM, "isLocal", "isElementLocal" ); lua_classfunction ( luaVM, "isSyncer", "isElementSyncer" ); @@ -222,6 +223,7 @@ void CLuaMain::AddElementClass ( lua_State* luaVM ) lua_classvariable ( luaVM, "callPropagationEnabled", "setElementCallPropagationEnabled", "isElementCallPropagationEnabled" ); lua_classvariable ( luaVM, "waitingForGroundToLoad", NULL, "isElementWaitingForGroundToLoad" ); lua_classvariable ( luaVM, "onScreen", NULL, "isElementOnScreen" ); + lua_classvariable ( luaVM, "streamedIn", NULL, "isElementStreamedIn" ); lua_classvariable ( luaVM, "streamable", "setElementStreamable", "isElementStreamable" ); lua_classvariable ( luaVM, "localElement", NULL, "isElementLocal" ); lua_classvariable ( luaVM, "id", "setElementID", "getElementID" ); @@ -2012,8 +2014,8 @@ bool CLuaMain::LoadScriptFromBuffer ( const char* cpInBuffer, unsigned int uiInS g_pClientGame->TellServerSomethingImportant( 1003, SStringX( "CLIENT SCRIPT ERROR: " ) + strMessage, false ); return false; } - - bool bUTF8 = CLuaShared::CheckUTF8BOMAndUpdate ( &cpBuffer, &uiSize ); + + bool bUTF8 = CLuaShared::CheckUTF8BOMAndUpdate ( &cpBuffer, &uiSize ); // If compiled script, make sure correct chunkname is embedded CLuaShared::EmbedChunkName( strNiceFilename, &cpBuffer, &uiSize );