diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-10-03 16:48:54 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-10-03 16:48:54 +0000 |
commit | 6c8707472f72e0ecf3827c8dccfe6851fc00eb50 (patch) | |
tree | 4112799de451aee8fe35257cc5ecf833c7120c3d /src/graphic/graphic.cpp | |
parent | dbdbebfd5a5c76ea389fdda7da239fffa0485c68 (diff) | |
download | mana-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.tar.gz mana-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.tar.bz2 mana-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.tar.xz mana-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.zip |
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r-- | src/graphic/graphic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |