diff options
author | Haru <haru@dotalux.com> | 2013-09-03 19:51:56 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-03 19:53:24 +0200 |
commit | da3b014f7fb44d36aae0c1a2b18cb07329d18b36 (patch) | |
tree | e4fd9c83af68905f1f3ff0b9c714dd22b75ce021 /src/map/clif.c | |
parent | df0a324108cd8b6ee7ac984700efed80044ed7c3 (diff) | |
download | hercules-da3b014f7fb44d36aae0c1a2b18cb07329d18b36.tar.gz hercules-da3b014f7fb44d36aae0c1a2b18cb07329d18b36.tar.bz2 hercules-da3b014f7fb44d36aae0c1a2b18cb07329d18b36.tar.xz hercules-da3b014f7fb44d36aae0c1a2b18cb07329d18b36.zip |
Corrected some MSVC warnings with old (<2009) packetvers
Follow-up to df0a324, thanks to Beret
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 8 insertions, 4 deletions
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); |