luaInit was called two times.
This commit is contained in:
@@ -527,7 +527,6 @@ bool luaInit() {
|
||||
|
||||
return false;
|
||||
}
|
||||
// luaRegister();
|
||||
defineGlobals();
|
||||
|
||||
return true;
|
||||
|
||||
@@ -108,10 +108,6 @@ bool stateInit( const char *exePath ) {
|
||||
if ( state->run ) {
|
||||
InitAudioDevice();
|
||||
state->run = luaInit();
|
||||
// luaRegister();
|
||||
// defineGlobals();
|
||||
|
||||
state->run = luaInit();
|
||||
}
|
||||
|
||||
return state->run;
|
||||
|
||||
Reference in New Issue
Block a user