From 9eaa136c58b995723c220482eb60c7414298c293 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Sun, 12 Apr 2015 09:12:49 +0300 Subject: [PATCH] fix releasing obstacle pointer --- server/CGameHandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 889a088ea..808716c4b 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -1084,11 +1084,10 @@ int CGameHandler::moveStack(int stack, BattleHex dest) //if stack didn't die in explosion, continue movement if(obs->stopsMovement() || !curStack->alive()) { - obs.reset(); - //movement has been interrupted by obstacle stackIsMoving = false; } + obs.reset(); } };