diff options
author | shennetsind <ind@henn.et> | 2013-12-09 20:28:19 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-09 20:28:19 -0200 |
commit | b4136dd3d4779d80df18f84929c576c8080cd7b8 (patch) | |
tree | d38885e73698210ea2411093db594f8f2ebd42ea /src/map/chat.c | |
parent | 4727cc95528be094cd2c1c3fbb3c92b7873c809b (diff) | |
download | hercules-b4136dd3d4779d80df18f84929c576c8080cd7b8.tar.gz hercules-b4136dd3d4779d80df18f84929c576c8080cd7b8.tar.bz2 hercules-b4136dd3d4779d80df18f84929c576c8080cd7b8.tar.xz hercules-b4136dd3d4779d80df18f84929c576c8080cd7b8.zip |
Fixed some logic errors
Special Thanks to Haru
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index 187d40337..858878430 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -54,11 +54,11 @@ struct chat_data* chat_createchat(struct block_list* bl, const char* title, cons if( cd->bl.id == 0 ) { aFree(cd); - cd = NULL; + return NULL; } map->addiddb(&cd->bl); - + if( bl->type != BL_NPC ) cd->kick_list = idb_alloc(DB_OPT_BASE); |