mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix a crash.
This commit is contained in:
parent
a3f0d1a94e
commit
081a20d047
@ -605,7 +605,7 @@ void CGCreature::writeJsonOptions(JsonNode& json) const
|
||||
|
||||
if(hasStackAtSlot(SlotID(0)))
|
||||
{
|
||||
auto sta = getStack(SlotID(0));
|
||||
const auto & sta = getStack(SlotID(0));
|
||||
json["amount"].Float() = sta.count;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user