hedgewars/uCommandHandlers.pas
branchhedgeroid
changeset 5385 a864a0aeed96
parent 5381 8f95038f3f75
parent 5352 7f57d0c7816a
child 5530 25d4118056e1
--- a/hedgewars/uCommandHandlers.pas	Wed Jun 29 18:09:24 2011 +0200
+++ b/hedgewars/uCommandHandlers.pas	Fri Jul 01 08:46:47 2011 +0200
@@ -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;