1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

fix releasing obstacle pointer

This commit is contained in:
AlexVinS 2015-04-12 09:12:49 +03:00
parent 5226081f33
commit 9eaa136c58

View File

@ -1084,11 +1084,10 @@ int CGameHandler::moveStack(int stack, BattleHex dest)
//if stack didn't die in explosion, continue movement //if stack didn't die in explosion, continue movement
if(obs->stopsMovement() || !curStack->alive()) if(obs->stopsMovement() || !curStack->alive())
{ {
obs.reset();
//movement has been interrupted by obstacle //movement has been interrupted by obstacle
stackIsMoving = false; stackIsMoving = false;
} }
obs.reset();
} }
}; };