summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-28 15:55:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-28 15:55:30 +0100
commit403325634d3226f490fd843b93b1688edf6f032d (patch)
treed1b11eda9ff61860c780aac17b1217cb0e4d7c85
parent411a94be8cbafbfdb7e85a2b56f214f751e6ade4 (diff)
fix typo
-rw-r--r--serialize/scenery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/scenery.cpp b/serialize/scenery.cpp
index 64fc7d7b..0089e411 100644
--- a/serialize/scenery.cpp
+++ b/serialize/scenery.cpp
@@ -118,10 +118,10 @@ void adl_serializer<scenery_proto>::from_json(const json& j, scenery_proto& val)
bool active = f.active; get("active", active);
bool animated = f.animated; get("animated", animated);
- switch (f.type)
+ switch (type)
{
default:
- fm_abort("unhandled scenery type '%hhu'", f.type);
+ fm_abort("unhandled scenery type '%hhu'", type);
case scenery_type::generic:
f = { scenery::generic, *atlas, r, frame, passable, blocks_view, animated, active };
break;