mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Actually return after failed test
This commit is contained in:
@@ -244,11 +244,11 @@ uint8 TestTrack::TestPaintTrackElement(uint8 rideType, uint8 trackType) {
|
||||
for (int trackSequence = 0; trackSequence < sequenceCount; trackSequence++) {
|
||||
for (auto &&function : functions) {
|
||||
retVal = function(rideType, trackType, trackSequence, &error);
|
||||
}
|
||||
|
||||
if (retVal != TEST_SUCCESS) {
|
||||
printf("%s\n", error.c_str());
|
||||
return retVal;
|
||||
if (retVal != TEST_SUCCESS) {
|
||||
printf("%s\n", error.c_str());
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user