From bcff6f5a7ecee1545d0d1acae5f893b078f2ec19 Mon Sep 17 00:00:00 2001 From: Stephan Spengler Date: Mon, 26 Feb 2024 22:10:47 +0100 Subject: [PATCH] Update ScTileElement.cpp: fix typos (#21463) --- src/openrct2/scripting/bindings/world/ScTileElement.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index ed4d675b57..53c5111eef 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -449,7 +449,7 @@ namespace OpenRCT2::Scripting } else { - scriptEngine.LogPluginInfo("Cannot set 'rideType' property, tile element is not a TrackElement."); + scriptEngine.LogPluginInfo("Cannot read 'rideType' property, tile element is not a TrackElement."); duk_push_null(ctx); } return DukValue::take_from_stack(ctx); @@ -566,7 +566,7 @@ namespace OpenRCT2::Scripting break; } default: - throw DukException() << "Cannot set 'rideType' property, tile element is not a TrackElement, " + throw DukException() << "Cannot set 'sequence' property, tile element is not a TrackElement, " "LargeSceneryElement, or EntranceElement."; } } @@ -716,7 +716,7 @@ namespace OpenRCT2::Scripting } default: throw DukException() - << "Cannot set 'station' property, tile element is not PathElement, TrackElement, or EntranceElement"; + << "Cannot read 'station' property, tile element is not PathElement, TrackElement, or EntranceElement"; } } catch (const DukException& e)