mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
fix segmentation fault; update townlist on adventuremap
This commit is contained in:
@ -274,4 +274,6 @@ void PlayerLocalState::swapOwnedTowns(int pos1, int pos2)
|
||||
{
|
||||
assert(ownedTowns[pos1] && ownedTowns[pos2]);
|
||||
std::swap(ownedTowns[pos1], ownedTowns[pos2]);
|
||||
|
||||
adventureInt->onTownOrderChanged();
|
||||
}
|
||||
|
Reference in New Issue
Block a user