summaryrefslogtreecommitdiffstats
path: root/src/script/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/script.cpp')
-rw-r--r--src/script/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp
index 7a80266..f80e943 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -1140,7 +1140,7 @@ bool CScript::rProduce(CBotVar* var, CBotVar* result, int& exception, void* user
type == OBJECT_FLAGy ||
type == OBJECT_FLAGv )
{
- object = new CObject(m_iMan);
+ object = new CObject(script->m_iMan);
if ( !object->CreateFlag(pos, angle, type); )
{
delete object;