fix: don't crash when changing the language (only when offline)

This change only makes it work when in offline/airplane mode.
When connected to a server it still crashes.
Likely due to a different part of the code.

Thanks to https://github.com/piplup55 for pointing out to me that this worked in old versions.
I then tested a few older builds and found out that it started to not work with version `v1.1.0`.
Using `git bisect` I was able to find out that commit 34691affb0 introduced the issue.
This commit is contained in:
Robin C. Ladiges 2024-10-21 06:54:17 +02:00
parent 0a18f616e5
commit d3dcc7e510
No known key found for this signature in database
GPG key ID: B494D3DF92661B99

View file

@ -11,7 +11,6 @@
class GameModeManager { class GameModeManager {
SEAD_SINGLETON_DISPOSER(GameModeManager) SEAD_SINGLETON_DISPOSER(GameModeManager)
GameModeManager(); GameModeManager();
~GameModeManager();
public: public:
void setMode(GameMode mode); void setMode(GameMode mode);