Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing OOP definitions #19

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions MTA10/mods/shared_logic/lua/CLuaMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ void CLuaMain::AddVehicleClass ( lua_State* luaVM )
lua_classfunction ( luaVM, "getTrack", "getTrainTrack" );
lua_classfunction ( luaVM, "getTrainPosition", "getTrainPosition" );
lua_classfunction ( luaVM, "getName", "getVehicleName" );
lua_classfunction ( luaVM, "getModelFromName", "getVehicleModelFromName" );
lua_classfunction ( luaVM, "getNameFromModel", "getVehicleNameFromModel" );
lua_classfunction ( luaVM, "getVehicleType", "getVehicleType" );
lua_classfunction ( luaVM, "getMaxPassengers", "getVehicleMaxPassengers" );
lua_classfunction ( luaVM, "getGear", "getVehicleCurrentGear" );
Expand Down Expand Up @@ -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 );
Expand Down