1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix saves when some humans become AI. (PlayerInterface destructor clears LOCPLINT)

This commit is contained in:
Andrii Danylchenko 2022-03-20 12:18:30 +02:00
parent 5080f26235
commit 4defbc314a

View File

@ -288,6 +288,7 @@ void CClient::serialize(BinaryDeserializer & h, const int version)
std::string dllname;
PlayerColor pid;
bool isHuman = false;
auto prevInt = LOCPLINT;
h & pid;
h & dllname;
@ -331,6 +332,7 @@ void CClient::serialize(BinaryDeserializer & h, const int version)
continue;
}
nInt.reset();
LOCPLINT = prevInt;
}
{