hedgewars/uStats.pas
changeset 9411 d95ac9992529
parent 9409 6564baf7dedf
child 9521 8054d9d775fd
child 9998 736015b847e3
--- a/hedgewars/uStats.pas	Sat Aug 24 00:13:15 2013 +0400
+++ b/hedgewars/uStats.pas	Sat Aug 24 01:37:20 2013 +0400
@@ -312,8 +312,8 @@
 end;
 
 procedure declareAchievement(id, teamname, location: shortstring; value: LongInt);
-begin
-    if (length(id) = 0) or (length(teamname) = 0) then exit;
+begin 
+if (length(id) = 0) or (length(teamname) = 0) or (length(location) = 0) then exit;
     WriteLnToConsole('ACHIEVEMENT');
     WriteLnToConsole(id);
     WriteLnToConsole(teamname);