From 4559ca444daacfd02ebb05f1657148a2b4cf3d8b Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 20 Feb 2013 22:46:55 +0100 Subject: Introduced Script::Context This should allow to finally call functions to lua without having to care about working around situations where a lua call causes a c++ call which needs to call to lua again. Tested against the source of tales repository data. --- src/scripting/scriptmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripting/scriptmanager.cpp') diff --git a/src/scripting/scriptmanager.cpp b/src/scripting/scriptmanager.cpp index c9d1ce85..39a1a6a5 100644 --- a/src/scripting/scriptmanager.cpp +++ b/src/scripting/scriptmanager.cpp @@ -60,7 +60,7 @@ bool ScriptManager::performCraft(Being *crafter, _currentState->prepare(_craftCallback); _currentState->push(crafter); _currentState->push(recipe); - _currentState->execute(); + _currentState->execute(crafter->getMap()); return true; } -- cgit v1.2.3-70-g09d2