hedgewars/uCommandHandlers.pas
changeset 5366 bfdd925e89a5
parent 5352 7f57d0c7816a
child 5385 a864a0aeed96
child 5523 9ac5acc4f3e5
--- a/hedgewars/uCommandHandlers.pas	Thu Jun 30 15:09:10 2011 +0400
+++ b/hedgewars/uCommandHandlers.pas	Fri Jul 01 10:38:00 2011 +0400
@@ -445,7 +445,7 @@
 
 procedure chSetMap(var s: shortstring);
 begin
-if isDeveloperMode then
+if isDeveloperMode and (s <> '') then
 begin
 UserPathz[ptMapCurrent]:= UserPathz[ptMaps] + '/' + s;
 Pathz[ptMapCurrent]:= Pathz[ptMaps] + '/' + s;