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:
@@ -46,7 +46,7 @@ void CCreGenAsCastleInfo::serializeJson(JsonSerializeFormat & handler)
|
||||
|
||||
if(!handler.saving)
|
||||
{
|
||||
asCastle = (instanceId != "");
|
||||
asCastle = !instanceId.empty();
|
||||
allowedFactions.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user