mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
vcmi: remove TFaction
This is a huge change and will break save compatibility
This commit is contained in:
@@ -853,7 +853,7 @@ void CVCMIServer::optionNextCastle(PlayerColor player, int dir)
|
||||
else
|
||||
{
|
||||
assert(dir >= -1 && dir <= 1); //othervice std::advance may go out of range
|
||||
auto iter = allowed.find((ui8)cur);
|
||||
auto iter = allowed.find(FactionID(cur));
|
||||
std::advance(iter, dir);
|
||||
cur = *iter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user