mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Debug tweaks
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user