summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index bb1f3e933..acc7a3a31 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -4206,6 +4206,8 @@ void the_game(bool *kill,
errorstream << "ServerError: " << e.what() << std::endl;
} catch (ModError &e) {
errorstream << "ModError: " << e.what() << std::endl;
- error_message = narrow_to_wide(e.what()) + wgettext("\nCheck debug.txt for details.");
+ wchar_t *check_msg = wgettext("\nCheck debug.txt for details.");
+ error_message = narrow_to_wide(e.what()) + check_msg;
+ delete [] check_msg;
}
}