mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
fix releasing obstacle pointer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user