Fixed AlienQueen crash

master
krzys-h 2015-08-10 13:33:11 +02:00
parent 39a4a4cd78
commit 73e0abc510
1 changed files with 1 additions and 1 deletions

View File

@ -1589,7 +1589,7 @@ bool CScriptFunctions::rProduce(CBotVar* var, CBotVar* result, int& exception, v
type == OBJECT_BEE ||
type == OBJECT_WORM )
{
CObject* object = CObjectManager::GetInstancePointer()->CreateObject(pos, angle, type);
object = CObjectManager::GetInstancePointer()->CreateObject(pos, angle, type);
CObjectManager::GetInstancePointer()->CreateObject(pos, angle, OBJECT_EGG, 0.0f);
object->SetActivity(false);
}