From 3e1544aac8afceaa95a9a2f2af80bad54f506a53 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 12 Sep 2021 18:31:21 +0200 Subject: [PATCH] Add missing object types to ObjectTypeToString() --- .../scripting/bindings/object/ScObject.hpp | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/openrct2/scripting/bindings/object/ScObject.hpp b/src/openrct2/scripting/bindings/object/ScObject.hpp index a2d1938ae9..ee2a8dc138 100644 --- a/src/openrct2/scripting/bindings/object/ScObject.hpp +++ b/src/openrct2/scripting/bindings/object/ScObject.hpp @@ -60,9 +60,25 @@ namespace OpenRCT2::Scripting static std::string_view ObjectTypeToString(uint8_t type) { - static const char* Types[] = { "ride", "small_scenery", "large_scenery", "wall", "banner", - "footpath", "footpath_addition", "scenery_group", "park_entrance", "water", - "stex", "terrain_surface", "terrain_edge", "station", "music" }; + static const char* Types[] = { + "ride", + "small_scenery", + "large_scenery", + "wall", + "banner", + "footpath", + "footpath_addition", + "scenery_group", + "park_entrance", + "water", + "stex", + "terrain_surface", + "terrain_edge", + "station", + "music", + "footpath_surface", + "footpath_railings", + }; if (type >= std::size(Types)) return "unknown"; return Types[type];