[Widelands-cvs] SF.net SVN: widelands:[3280] trunk/src/wlapplication.cc
Status: Beta
Brought to you by:
sirver
From: <nas...@us...> - 2008-08-27 19:32:33
|
Revision: 3280 http://widelands.svn.sourceforge.net/widelands/?rev=3280&view=rev Author: nasenbaer_peter Date: 2008-08-27 19:32:31 +0000 (Wed, 27 Aug 2008) Log Message: ----------- Fix bug that let widelands crash after closing the editor - if you loaded a map via menu. Modified Paths: -------------- trunk/src/wlapplication.cc Modified: trunk/src/wlapplication.cc =================================================================== --- trunk/src/wlapplication.cc 2008-08-27 14:07:28 UTC (rev 3279) +++ trunk/src/wlapplication.cc 2008-08-27 19:32:31 UTC (rev 3280) @@ -1275,12 +1275,15 @@ break; case Fullscreen_Menu_Editor::Load_Map: { - Fullscreen_Menu_Editor_MapSelect emsm; - int retval = emsm.run(); - if (retval <= 0) - break; + std::string filename; + { + Fullscreen_Menu_Editor_MapSelect emsm; + int retval = emsm.run(); + if (retval <= 0) + break; - std::string filename = emsm.get_map(); + filename = emsm.get_map(); + } Editor_Interactive::run_editor(filename.c_str()); } done = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |