View | Details | Raw Unified | Return to bug 202499 | Differences between
and this patch

Collapse All | Expand All

(-)games/nlarn/files/patch-src-monsters.c (+14 lines)
Line 0 Link Here
1
--- src/monsters.c.orig	2012-07-06 19:29:35.000000000 +0200
2
+++ src/monsters.c	2015-08-19 23:52:50.496120000 +0200
3
@@ -2725,6 +2725,11 @@ static position monster_move_serve(monst
4
             map_path_element *pe = g_queue_pop_head(path->path);
5
             npos = pe->pos;
6
         }
7
+        else
8
+        {
9
+            /* ensure npos is initialized */
10
+            npos = m->pos;
11
+        }
12
 
13
         if (path != NULL)
14
             map_path_destroy(path);
(-)games/nlarn/files/patch-src-player.c (+14 lines)
Line 0 Link Here
1
--- src/player.c.orig	2012-07-06 19:29:35.000000000 +0200
2
+++ src/player.c	2015-08-19 23:56:03.671153000 +0200
3
@@ -1605,6 +1605,11 @@ int player_map_enter(player *p, map *l, 
4
         else
5
             pos = map_find_sobject(l, LS_STAIRSUP);
6
     }
7
+    /* doing nothing? */
8
+    else
9
+    {
10
+        pos = p->pos;
11
+    }
12
 
13
     if (l->nlevel == 0)
14
     {

Return to bug 202499