diff options
author | Haru <haru@dotalux.com> | 2016-01-10 02:58:49 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-10 03:00:59 +0100 |
commit | ad19ef3bf754e0ea64dd9c3b6eabfa4c7ced00f5 (patch) | |
tree | 5278f1b6ce9adf685dd7abbcf2d20d3ad9d66805 /src/map/homunculus.h | |
parent | 93dd228452fd107df3cc00ef4c9445e3712ecaca (diff) | |
download | hercules-ad19ef3bf754e0ea64dd9c3b6eabfa4c7ced00f5.tar.gz hercules-ad19ef3bf754e0ea64dd9c3b6eabfa4c7ced00f5.tar.bz2 hercules-ad19ef3bf754e0ea64dd9c3b6eabfa4c7ced00f5.tar.xz hercules-ad19ef3bf754e0ea64dd9c3b6eabfa4c7ced00f5.zip |
Fixed a compiler warning (statement with no effect)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/homunculus.h')
-rw-r--r-- | src/map/homunculus.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/map/homunculus.h b/src/map/homunculus.h index 3e3aff414..d4fa34277 100644 --- a/src/map/homunculus.h +++ b/src/map/homunculus.h @@ -64,13 +64,14 @@ enum homun_id { #ifdef RENEWAL #define HOMUN_LEVEL_STATWEIGHT_VALUE 0 -#define APPLY_HOMUN_LEVEL_STATWEIGHT()( \ - hom->str_value = hom->agi_value = \ - hom->vit_value = hom->int_value = \ - hom->dex_value = hom->luk_value = hom->level / 10 - HOMUN_LEVEL_STATWEIGHT_VALUE \ - ) +#define APPLY_HOMUN_LEVEL_STATWEIGHT() \ + do { \ + hom->str_value = hom->agi_value = \ + hom->vit_value = hom->int_value = \ + hom->dex_value = hom->luk_value = hom->level / 10 - HOMUN_LEVEL_STATWEIGHT_VALUE; \ + } while (false) #else -#define APPLY_HOMUN_LEVEL_STATWEIGHT() 0 +#define APPLY_HOMUN_LEVEL_STATWEIGHT() (void)0 #endif struct h_stats { |