Fix delete() CBot command

dev-time-step
krzys-h 2016-01-30 17:41:54 +01:00
parent 9db943b820
commit 6bdebcf8e4
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ bool CScriptFunctions::rDelete(CBotVar* var, CBotVar* result, int& exception, vo
DestructionType exploType = DestructionType::Explosion;
rank = var->GetValInt();
var->GetNext();
var = var->GetNext();
if ( var != nullptr )
{
exploType = static_cast<DestructionType>(var->GetValInt());