1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Debug tweaks

This commit is contained in:
AlexVinS
2016-02-10 08:59:24 +03:00
parent 3c78f960cd
commit fb17914ae5
3 changed files with 8 additions and 1 deletions

View File

@@ -386,7 +386,9 @@ void CGObjectInstance::writeOwner(JsonNode & json) const
void CGObjectInstance::readOwner(const JsonNode & json)
{
if(json["owner"].getType() == JsonNode::DATA_STRING)
{
tempOwner = PlayerColor(vstd::find_pos(GameConstants::PLAYER_COLOR_NAMES, json["owner"].String()));
}
}
CGObjectInstanceBySubIdFinder::CGObjectInstanceBySubIdFinder(CGObjectInstance * obj) : obj(obj)