1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 07:43:01 +01:00

Update ScTileElement.cpp: fix typos (#21463)

This commit is contained in:
Stephan Spengler
2024-02-26 22:10:47 +01:00
committed by GitHub
parent 70461be037
commit bcff6f5a7e

View File

@@ -449,7 +449,7 @@ namespace OpenRCT2::Scripting
} }
else 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); duk_push_null(ctx);
} }
return DukValue::take_from_stack(ctx); return DukValue::take_from_stack(ctx);
@@ -566,7 +566,7 @@ namespace OpenRCT2::Scripting
break; break;
} }
default: 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."; "LargeSceneryElement, or EntranceElement.";
} }
} }
@@ -716,7 +716,7 @@ namespace OpenRCT2::Scripting
} }
default: default:
throw DukException() 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) catch (const DukException& e)