From da3b014f7fb44d36aae0c1a2b18cb07329d18b36 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 3 Sep 2013 19:51:56 +0200 Subject: Corrected some MSVC warnings with old (<2009) packetvers Follow-up to df0a324, thanks to Beret Signed-off-by: Haru --- src/map/clif.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index 306a83082..ee7d085a6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -921,8 +921,10 @@ void clif_set_unit_idle(struct block_list* bl, struct map_session_data *tsd, enu int g_id = iStatus->get_guild_id(bl); #if PACKETVER < 20091103 - if( !pcdb_checkid(vd->class_) ) - return clif->set_unit_idle2(bl,tsd,target); + if( !pcdb_checkid(vd->class_) ) { + clif->set_unit_idle2(bl,tsd,target); + return; + } #endif sd = BL_CAST(BL_PC, bl); @@ -1047,8 +1049,10 @@ void clif_spawn_unit(struct block_list* bl, enum send_target target) { int g_id = iStatus->get_guild_id(bl); #if PACKETVER < 20091103 - if( !pcdb_checkid(vd->class_) ) - return clif->spawn_unit2(bl,target); + if( !pcdb_checkid(vd->class_) ) { + clif->spawn_unit2(bl,target); + return; + } #endif sd = BL_CAST(BL_PC, bl); -- cgit v1.2.3-60-g2f50