summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c2
-rw-r--r--src/map/unit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 204397dd3..b91a3a984 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -4790,7 +4790,7 @@ int char_config_read(const char* cfgName)
i = 0;
split = strtok(w2, ",");
- while (split != NULL && i < MAX_START_ITEMS) {
+ while (split != NULL && i < MAX_START_ITEMS*2) {
split2 = split;
split = strtok(NULL, ",");
start_items[i] = atoi(split2);
diff --git a/src/map/unit.c b/src/map/unit.c
index 15421019b..952b1a20e 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -330,7 +330,7 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag)
&& wpd.path_len > 14 ) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett]
return 0;
#endif
- if( battle_config.max_walk_path < wpd.path_len )
+ if( (battle_config.max_walk_path < wpd.path_len) && (bl->type != BL_NPC) )
return 0;
if (flag&4 && DIFF_TICK(ud->canmove_tick, gettick()) > 0 &&