From a8ea5d105517ac726f630b882d3218f01faafdea Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 12 Aug 2010 00:39:14 +0000 Subject: [PATCH] - bugfix for crash message in windows --- source/glest_game/main/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 74be045c..0c6d0223 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -80,10 +80,11 @@ public: program->showMessage(msg); } else { - message("#2 An error ocurred and Glest will close.\nError msg = [" + (msg != NULL ? string(msg) : string("?")) + "]\n\nPlease report this bug to "+mailString); + string err = "#2 An error ocurred and Glest will close.\nError msg = [" + (msg != NULL ? string(msg) : string("?")) + "]\n\nPlease report this bug to "+mailString; #ifdef WIN32 - message += ", attaching the generated "+getCrashDumpFileName()+" file."; + err += string(", attaching the generated ") + getCrashDumpFileName() + string(" file."); #endif + message(err); } showCursor(true); restoreVideoMode(true);