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:
parent
5080f26235
commit
4defbc314a
@ -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;
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user