mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Fix break that should be a return
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user