diff --git a/apps/openmw/mwlua/worldbindings.cpp b/apps/openmw/mwlua/worldbindings.cpp index 204599bdf0..d931de9a2c 100644 --- a/apps/openmw/mwlua/worldbindings.cpp +++ b/apps/openmw/mwlua/worldbindings.cpp @@ -63,7 +63,7 @@ namespace MWLua Misc::NotNullPtr world = MWBase::Environment::get().getWorld(); MWWorld::DateTimeManager* timeManager = world->getTimeManager(); - api["advanceTime"] = [context, world](const FiniteFloat hours) { + api["advanceTime"] = [world](const FiniteFloat hours) { if (hours <= 0.0f) throw std::runtime_error("Time may only be advanced forward"); diff --git a/files/lua_api/openmw/world.lua b/files/lua_api/openmw/world.lua index 4c3a1fb690..1a9060e0d7 100644 --- a/files/lua_api/openmw/world.lua +++ b/files/lua_api/openmw/world.lua @@ -208,5 +208,6 @@ --- -- Advance the world time by a certain number of hours. This advances time, weather, and AI, but does not perform other functions associated with the passage of time, eg regeneration. -- @function [parent=#world] advanceTime +-- @param #number hours Number of hours to advance time return nil