Skip to content

Commit

Permalink
Fix crash due to Settings not being initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkster committed Aug 28, 2018
1 parent 331d92e commit 672b234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see https://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 6, 42);
Version VersionInfo::ENGINE(1, 6, 43);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ bool init_finished = false;
* Game initialization.
*/
static void init(const CmdLineArgs& cmd_line_args) {
settings = new Settings();

/**
* Set system paths
* PATH_CONF is for user-configurable settings files (e.g. keybindings)
Expand Down Expand Up @@ -336,6 +334,8 @@ void EmscriptenMainLoop() {
#endif

int main(int argc, char *argv[]) {
settings = new Settings();

bool debug_event = false;
bool done = false;
CmdLineArgs cmd_line_args;
Expand Down

0 comments on commit 672b234

Please sign in to comment.