summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-16 14:14:11 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-16 14:14:11 +0000
commit3c73a02748ca50a32005a5b73933a582cd87b80f (patch)
tree9c35effdea7e3bf0a2a944957b7c2e489ba68f34 /src/map/map.c
parentccc18ecfe671803c6d6b9b6dd790c45cdf28c9ac (diff)
downloadhercules-3c73a02748ca50a32005a5b73933a582cd87b80f.tar.gz
hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.tar.bz2
hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.tar.xz
hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.zip
* Fixed npc chatrooms not being deleted on npc unload/reload (crash)
* Modified chat code a bit for more clarity - replaced double-indirection on 'owner' with a normal pointer - separated some common functionality to 'chat_createchat()' git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11023 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 82a557109..971ffc9f0 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1844,7 +1844,7 @@ struct map_session_data * map_nick2sd(const char *nick)
struct block_list * map_id2bl(int id)
{
struct block_list *bl=NULL;
- if(id >= 0 && id < sizeof(objects)/sizeof(objects[0]))
+ if(id >= 0 && id < ARRAYLENGTH(objects))
bl = objects[id];
else
bl = idb_get(id_db,id);