summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-10-03 16:48:54 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-10-03 16:48:54 +0000
commit6c8707472f72e0ecf3827c8dccfe6851fc00eb50 (patch)
tree4112799de451aee8fe35257cc5ecf833c7120c3d /src/graphic/graphic.cpp
parentdbdbebfd5a5c76ea389fdda7da239fffa0485c68 (diff)
downloadmana-client-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.tar.gz
mana-client-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.tar.bz2
mana-client-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.tar.xz
mana-client-6c8707472f72e0ecf3827c8dccfe6851fc00eb50.zip
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp4
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;