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