summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-02-14 17:26:01 +0100
committerkrzys-h <krzys_h@interia.pl>2013-02-14 17:26:01 +0100
commit5d331f37ae3ade906d092d985703db1afc55d417 (patch)
treea9e725322cbfe205bb0c0383caafafcd2bb6dc86
parent945299ae5dfe465b1a407ed56a3e45d373e8106e (diff)
downloadcolobot-5d331f37ae3ade906d092d985703db1afc55d417.tar.gz
colobot-5d331f37ae3ade906d092d985703db1afc55d417.tar.bz2
colobot-5d331f37ae3ade906d092d985703db1afc55d417.zip
Another small fix.
I'm a noob. Sorry.
-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 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