1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix signed number serialization

This commit is contained in:
nordsoft 2023-09-04 02:57:51 +04:00
parent b7a438e8f4
commit 8f5594613b

View File

@ -344,7 +344,7 @@ void CGObjectInstance::serializeJsonOwner(JsonSerializeFormat & handler)
if(handler.saving && tempOwner == PlayerColor::NEUTRAL)
return;
ui8 temp = tempOwner.getNum();
si8 temp = tempOwner.getNum();
handler.serializeEnum("owner", temp, PlayerColor::NEUTRAL.getNum(), GameConstants::PLAYER_COLOR_NAMES);