Fix for gamegrid-add-score-with-update-game-score-1.
authorStephen Berman <stephen.berman@gmx.net>
Sat, 17 Nov 2012 07:00:35 +0000 (15:00 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 17 Nov 2012 07:00:35 +0000 (15:00 +0800)
* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score-1):
Don't signal an error with a score that is too low to add to the list
of top scores.

Fixes: debbugs:12779

lisp/ChangeLog
lisp/play/gamegrid.el

index 72192bc..8ac744b 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-17  Stephen Berman  <stephen.berman@gmx.net>
+
+       * play/gamegrid.el (gamegrid-add-score-with-update-game-score-1):
+       Don't signal an error with a score that is too low to add to the
+       list of top scores. (Bug#12779)
+
 2012-11-17  Chong Yidong  <cyd@gnu.org>
 
        * help-mode.el (help-xref-interned): End on point-min (Bug#12737).
index f3e277e..a3ea4af 100644 (file)
@@ -560,7 +560,7 @@ FILE is created there."
         (goto-char (point-min))
         (search-forward (concat (int-to-string score)
                                " " (user-login-name) " "
-                               marker-string))
+                               marker-string) nil t)
         (beginning-of-line)))))
 
 (defun gamegrid-add-score-insecure (file score &optional directory)