Apply suggestions from code review

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2025-12-06 16:34:59 +05:00 committed by GitHub
parent 04a405067d
commit 86fd58e6cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,7 +150,7 @@ bool LaunchController::askPlayDemo()
QString LaunchController::askOfflineName(QString playerName, bool demo, bool* ok)
{
if (ok) {
if (ok != nullptr) {
*ok = false;
}
@ -174,7 +174,7 @@ QString LaunchController::askOfflineName(QString playerName, bool demo, bool* ok
usedname = name;
APPLICATION->settings()->set("LastOfflinePlayerName", usedname);
if (ok) {
if (ok != nullptr) {
*ok = true;
}
return usedname;