diff options
-rw-r--r-- | source/game/scripting/StarLuaComponents.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/game/scripting/StarLuaComponents.hpp b/source/game/scripting/StarLuaComponents.hpp index a3d199c..e739912 100644 --- a/source/game/scripting/StarLuaComponents.hpp +++ b/source/game/scripting/StarLuaComponents.hpp @@ -252,6 +252,7 @@ LuaUpdatableComponent<Base>::LuaUpdatableComponent() { setUpdateDelta(d); }); + m_lastDt = GlobalTimestep * GlobalTimescale; Base::addCallbacks("script", move(scriptCallbacks)); } |