[colobot] 243/377: Fix delete() CBot command

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 6bdebcf8e4dfdc9f722aaa1f710c1bedb71e92b8
Author: krzys-h <krzys_h at interia.pl>
Date:   Sat Jan 30 17:41:54 2016 +0100

    Fix delete() CBot command
---
 src/script/scriptfunc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp
index 39f8b0d..665cbd4 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<DestructionType>(var->GetValInt());

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list