Skip to content

Commit

Permalink
Fixed #9048 ([OOP] Resource.getFromName does not exist client-side)
Browse files Browse the repository at this point in the history
Also fixed a typo in 7ad7614
  • Loading branch information
jushar committed Oct 25, 2015
1 parent 6e56023 commit d6842a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MTA10/mods/shared_logic/lua/CLuaMain.cpp
Expand Up @@ -1336,7 +1336,7 @@ void CLuaMain::AddResourceClass ( lua_State* luaVM )
lua_newclass ( luaVM );

lua_classfunction ( luaVM, "create", "getResourceFromName" );
lua_classfunction ( luaVM, "getfromName", "getResourceFromName" );
lua_classfunction ( luaVM, "getFromName", "getResourceFromName" );

lua_classfunction ( luaVM, "getGuiElement", "getResourceGUIElement" );
lua_classfunction ( luaVM, "getRootElement", "getResourceRootElement" );
Expand Down Expand Up @@ -1664,7 +1664,7 @@ void CLuaMain::AddBrowserClass ( lua_State* luaVM )
lua_classvariable ( luaVM, "title", nullptr, "getBrowserTitle" );
lua_classvariable ( luaVM, "renderingPaused", "setBrowserRenderingPaused", nullptr );
lua_classvariable ( luaVM, "volume", "setBrowserVolume", "getBrowserVolume" );
lua_classvariable ( luaVM, "devtools", "toggleBrowserDevTools", nullptr );
lua_classvariable ( luaVM, "devTools", "toggleBrowserDevTools", nullptr );

lua_registerclass ( luaVM, "Browser", "DxTexture" );

Expand Down

0 comments on commit d6842a3

Please sign in to comment.