summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-09-23 02:17:21 +0200
committerGitHub <noreply@github.com>2019-09-23 02:17:21 +0200
commit418b26dddca1d6ad9261adee56f96cf7c2c2de9b (patch)
treebd9c631b064f27f741e125a856e631dd6a13a9d6 /src/map/status.c
parent9a503ca86f8194135a86bad9070d64b21f56e2b6 (diff)
parent7ff0e074e74fd630f3bf90597605c82b4e10ec95 (diff)
downloadhercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.tar.gz
hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.tar.bz2
hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.tar.xz
hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.zip
Merge pull request #2536 from MishimaHaruna/compile-fixes
Compile fixes
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index ba32b267e..71cce28c5 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -11808,10 +11808,10 @@ static int status_change_timer(int tid, int64 tick, int id, intptr_t data)
case SC_SPLASHER:
#if 0 // custom Venom Splasher countdown timer
- if (sce->val4 % 1000 == 0) {
+ if (sce->val4 % 1000 == 0 && bl && bl->type == BL_PC) {
char counter[10];
snprintf (counter, 10, "%d", sce->val4/1000);
- clif->message(bl, counter);
+ clif->message(BL_UCCAST(BL_PC, bl)->fd, counter);
}
#endif // 0
if((sce->val4 -= 500) > 0) {