Correct buggy behavior of sign in endgame. Add a test for this.
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index c2e28b5635c31946a5c6528075ad6c443366bf20..f59f600347381796b094d80a719398dd2f5a3270 100644 (file)
--- a/main.c
+++ b/main.c
@@ -812,7 +812,7 @@ static bool closecheck(void)
          *  Reuse sign. */
         PUT(GRATE, LOC_SW, 0);
         PUT(SIGN, LOC_SW, 0);
-        ++OBJTXT[SIGN];
+        game.prop[SIGN] = ENDGAME_SIGN;
         game.prop[SNAKE] = PUT(SNAKE, LOC_SW, 1);
         game.prop[BIRD] = PUT(BIRD, LOC_SW, 1);
         game.prop[CAGE] = PUT(CAGE, LOC_SW, 0);