diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp index 39f8b0d3..665cbd43 100644 --- a/src/script/scriptfunc.cpp +++ b/src/script/scriptfunc.cpp @@ -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(var->GetValInt());