hedgewars/uCommandHandlers.pas
changeset 5352 7f57d0c7816a
parent 5247 bf6d4bc531d2
child 5385 a864a0aeed96
child 5523 9ac5acc4f3e5
--- a/hedgewars/uCommandHandlers.pas	Tue Jun 28 19:16:42 2011 -0400
+++ b/hedgewars/uCommandHandlers.pas	Tue Jun 28 21:48:28 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;