Another small fix.

I'm a noob. Sorry.
dev-ui
krzys-h 2013-02-14 17:26:01 +01:00
parent 945299ae5d
commit 5d331f37ae
1 changed files with 1 additions and 1 deletions

View File

@ -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