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:
parent
b7a438e8f4
commit
8f5594613b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user