Browse Source

fix releasing obstacle pointer

AlexVinS 10 years ago
parent
commit
9eaa136c58
1 changed files with 1 additions and 2 deletions
  1. 1 2
      server/CGameHandler.cpp

+ 1 - 2
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();						
 					}
 				};