Treat var_value field as string, not integer

This commit is contained in:
Marcus Huderle 2019-02-16 14:04:20 -06:00
parent 6bc28e7cd5
commit 4dedf73f76

View file

@ -295,7 +295,7 @@ bool Project::loadMapData(Map* map) {
coord->put("y", QString::number(event["y"].toInt()));
coord->put("elevation", QString::number(event["elevation"].toInt()));
coord->put("script_var", event["var"].toString());
coord->put("script_var_value", QString::number(event["var_value"].toInt()));
coord->put("script_var_value", event["var_value"].toString());
coord->put("script_label", event["script"].toString());
coord->put("event_group_type", "coord_event_group");
map->events["coord_event_group"].append(coord);