mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix saves when some humans become AI. (PlayerInterface destructor clears LOCPLINT)
This commit is contained in:
		| @@ -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; | ||||
| 	} | ||||
|  | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user