fixed crash when loading of celx script failed
parent
87c3e973be
commit
5b8f243233
|
@ -919,6 +919,9 @@ bool LuaState::handleMouseButtonEvent(float x, float y, int button, bool down)
|
|||
// Returns true if a handler is registered for the tick event
|
||||
bool LuaState::handleTickEvent(double dt)
|
||||
{
|
||||
if (!costate)
|
||||
return true;
|
||||
|
||||
CelestiaCore* appCore = getAppCore(costate, NoErrors);
|
||||
if (appCore == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue