From 6c8707472f72e0ecf3827c8dccfe6851fc00eb50 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sun, 3 Oct 2004 16:48:54 +0000 Subject: *** empty log message *** --- src/graphic/graphic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphic/graphic.cpp') diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index 052ec402..cbd0a9da 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -226,8 +226,8 @@ void do_graphic(void) { if(node->action!=STAND) { node->frame = (get_elapsed_time(node->tick_time)*4)/(node->speed); if(node->frame>=4) { - if(node->action!=MONSTER_DEAD) { - if(node->path->next && node->action!=MONSTER_DEAD) { + if(node->action!=MONSTER_DEAD && node->path) { + if(node->path->next) { PATH_NODE *old = node->path; node->path = node->path->next; direction = 0; -- cgit v1.2.3-60-g2f50