mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix 3184
Taken from !684. This fixes a bug with primary skills that results in heroes not being able to interact with objects, or skills being incorrect when moving from mission to mission.
This commit is contained in:
parent
bfd57ab5b5
commit
5080f26235
@ -1431,6 +1431,15 @@ void CGHeroInstance::serializeCommonOptions(JsonSerializeFormat & handler)
|
|||||||
{
|
{
|
||||||
handler.serializeString("biography", biography);
|
handler.serializeString("biography", biography);
|
||||||
handler.serializeInt("experience", exp, 0);
|
handler.serializeInt("experience", exp, 0);
|
||||||
|
|
||||||
|
if (!handler.saving)
|
||||||
|
{
|
||||||
|
while (gainsLevel())
|
||||||
|
{
|
||||||
|
++level;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
handler.serializeString("name", name);
|
handler.serializeString("name", name);
|
||||||
handler.serializeBool<ui8>("female", sex, 1, 0, 0xFF);
|
handler.serializeBool<ui8>("female", sex, 1, 0, 0xFF);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user