[apps/code] Fix break that should be a return

This commit is contained in:
Léa Saviot
2018-11-05 17:58:16 +01:00
committed by Émilie Feral
parent 58c022a9a9
commit 0f9d1db851

View File

@@ -30,7 +30,7 @@ void Script::DefaultName(char buffer[], size_t bufferSize) {
// Change the number in the script name.
intToText(currentScriptNumber, &buffer[defaultScriptNameLength], bufferSize - defaultScriptNameLength );
if (ScriptStore::ScriptNameIsFree(buffer)) {
break;
return;
}
currentScriptNumber++;
}