Actually return after failed test

This commit is contained in:
Marijn van der Werf 2016-10-17 18:04:12 +02:00
parent 7d126126ed
commit ba986f14ae
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}
}