mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
CLOUD: Fix crash when trying to connect without entering a code first
This commit is contained in:
parent
89ff116865
commit
7edc96803e
@ -242,10 +242,12 @@ void StorageWizardDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
|
||||
code += subcode;
|
||||
code.deleteLastChar();
|
||||
}
|
||||
code.erase(code.size() - 3);
|
||||
CloudMan.connectStorage(_storageId, code);
|
||||
setResult(1);
|
||||
close();
|
||||
if (code.size() > 3) {
|
||||
code.erase(code.size() - 3);
|
||||
CloudMan.connectStorage(_storageId, code);
|
||||
setResult(1);
|
||||
close();
|
||||
}
|
||||
break;
|
||||
}
|
||||
#ifdef USE_SDL_NET
|
||||
|
Loading…
Reference in New Issue
Block a user