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:
committed by
GitHub
parent
b7bc29ee82
commit
2d101a5212
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user