1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #1111 from GermanAizek/develop

Code refactor and fix condition bug
This commit is contained in:
Andrii Danylchenko
2022-11-15 09:23:16 +02:00
committed by GitHub
27 changed files with 48 additions and 47 deletions

View File

@@ -46,7 +46,7 @@ void CCreGenAsCastleInfo::serializeJson(JsonSerializeFormat & handler)
if(!handler.saving)
{
asCastle = (instanceId != "");
asCastle = !instanceId.empty();
allowedFactions.clear();
}