(pathcost): Fix the previous rev.
This commit is contained in:
parent
9731c24676
commit
ca517d5a44
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ pathcost(struct sctstr *start, s_char *path, int mob_type)
|
|||
if (CANT_HAPPEN(i >= sizeof(dirindex) / sizeof(*dirindex)))
|
||||
break;
|
||||
o = dirindex[i];
|
||||
if (CANT_HAPPEN(o) < 0)
|
||||
if (CANT_HAPPEN(o < 0))
|
||||
break;
|
||||
cx += diroff[o][0];
|
||||
cy += diroff[o][1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue