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::LuaUpdatableComponent() { setUpdateDelta(d); }); + m_lastDt = GlobalTimestep * GlobalTimescale; Base::addCallbacks("script", move(scriptCallbacks)); }