1
0
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:
AlexVinS 2016-02-05 09:40:20 +03:00
parent a3f0d1a94e
commit 081a20d047

View File

@ -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;
}