1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00

Merge pull request #5179 from godric3/map-editor-fix-copying-monster

map editor: fix crash when copying monster
This commit is contained in:
Ivan Savenko
2025-01-02 22:12:48 +02:00
committed by GitHub

View File

@@ -59,7 +59,8 @@ public:
{
CreatureID creatureID;
h & creatureID;
setType(creatureID.toCreature());
if(creatureID != CreatureID::NONE)
setType(creatureID.toCreature());
}
h & count;