mirror of https://github.com/OpenRCT2/OpenRCT2.git
Actually return after failed test
This commit is contained in:
parent
7d126126ed
commit
ba986f14ae
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue