mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-26 05:58:48 -05:00
Fix visibility settings for GuiPropertyComponent in Debug builds
Fix Lua state leaking when setting delta time
This commit is contained in:
@@ -45,6 +45,8 @@ int time_setDeltaTime(lua_State* L) {
|
||||
const bool isNumber = (lua_isnumber(L, -1) != 0);
|
||||
if (isNumber) {
|
||||
double value = lua_tonumber(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
OsEng.timeManager().time().setDeltaTime(value);
|
||||
ghoul_assert(lua_gettop(L) == 0, "Incorrect number of items left on stack");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user