Fix delete() CBot command
parent
9db943b820
commit
6bdebcf8e4
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue