summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/map.c2
-rw-r--r--src/map/npc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index a3757101d..38ed332af 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2338,7 +2338,7 @@ int map_readfromcache(struct map_data *m, FILE *fp)
if( i < header.map_count )
{
unsigned char *buf, *buf2;
- unsigned int size, xy;
+ unsigned long size, xy;
m->xs = info.xs;
m->ys = info.ys;
diff --git a/src/map/npc.h b/src/map/npc.h
index a0c1956b7..f74575368 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -19,7 +19,7 @@ struct view_data;
#define MAX_NPC_CLASS 1000
//Checks if a given id is a valid npc id. [Skotlex]
//Since new npcs are added all the time, the max valid value is the one before the first mob (Scorpion = 1001)
-#define npcdb_checkid(id) ((id >= 46 && id <= 125) || id == 139 || (id >= 700 && id <= MAX_NPC_CLASS) || id == INVISIBLE_CLASS)
+#define npcdb_checkid(id) ((id >= 46 && id <= 125) || id == 139 || (id >= 400 && id <= MAX_NPC_CLASS) || id == INVISIBLE_CLASS)
#ifdef PCRE_SUPPORT
void npc_chat_finalize(struct npc_data* nd);