From 386c28d98ec961da05f96eadb41e7e9f5b13a35a Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Tue, 7 Oct 2025 19:16:00 -0500 Subject: [PATCH] CLEANUP: Fix docs, remove unused lambda capture --- apps/openmw/mwlua/worldbindings.cpp | 2 +- files/lua_api/openmw/world.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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