diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/unit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 8153a4b..97860e1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -154,5 +154,10 @@ int eunit_walktoxy(struct block_list *bl __attribute__ ((unused)), // this reduce CPU usage and allow mobs to walk on each other. if ((*flagPtr)&8) *flagPtr = ((*flagPtr) | 8) ^ 8; + + TBL_PC *sd = BL_CAST(BL_PC, bl); + if (sd && pc_issit(sd)) + pc->setstand(sd); + return 1; } |