1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 08:12:53 +01:00

Provide additional information when rejecting unknown tile element

This commit is contained in:
Michał Janiszewski
2022-12-08 22:38:17 +01:00
committed by GitHub
parent b7bc29ee82
commit 2d101a5212

View File

@@ -290,7 +290,9 @@ constexpr TileElementType ToOpenRCT2TileElementType(RCT12TileElementType rct12ty
return static_cast<TileElementType>(rct12type);
default:
throw std::runtime_error("This tile element type cannot be converted directly!");
throw std::runtime_error(
"This tile element type cannot be converted directly! Tile element type: "
+ std::to_string(static_cast<int>(rct12type)));
}
}