Author: soliton
Date: Fri May 29 00:41:27 2009
New Revision: 35922

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35922&view=rev
Log:
throw an error when the scenario has no id (weird things will happen 
otherwise..)

Modified:
    branches/1.6/src/multiplayer_connect.cpp

Modified: branches/1.6/src/multiplayer_connect.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/multiplayer_connect.cpp?rev=35922&r1=35921&r2=35922&view=diff
==============================================================================
--- branches/1.6/src/multiplayer_connect.cpp (original)
+++ branches/1.6/src/multiplayer_connect.cpp Fri May 29 00:41:27 2009
@@ -1028,6 +1028,9 @@
        if(get_result() == QUIT
                || get_result() == CREATE)
                return;
+       if (level_["id"].empty()) {
+               throw config::error(_("The scenario is invalid because it has 
no id."));
+       }
        lists_init();
        if(sides_.empty()) {
                throw config::error(_("The scenario is invalid because it has 
no sides."));


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to