From 403325634d3226f490fd843b93b1688edf6f032d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 28 Nov 2022 15:55:30 +0100 Subject: fix typo --- serialize/scenery.cpp | 4 ++-- 1 file 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::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; -- cgit v1.2.3