diff options
Diffstat (limited to 'src/script/script.cpp')
-rw-r--r-- | src/script/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp index f80e943..199fd43 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -1141,7 +1141,7 @@ bool CScript::rProduce(CBotVar* var, CBotVar* result, int& exception, void* user type == OBJECT_FLAGv ) { object = new CObject(script->m_iMan); - if ( !object->CreateFlag(pos, angle, type); ) + if ( !object->CreateFlag(pos, angle, type) ) { delete object; result->SetValInt(1); // error |