From 3c73a02748ca50a32005a5b73933a582cd87b80f Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 16 Aug 2007 14:14:11 +0000 Subject: * 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 --- src/map/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/map.c') 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); -- cgit v1.2.3-60-g2f50