summaryrefslogtreecommitdiff
path: root/src/char/int_quest.c
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-04-14 17:38:54 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-04-14 17:38:54 +0530
commitdcee21a1a11c0c6aa5fe884f46bf3022375df3d1 (patch)
treeda986648a3fe09807c876be708d5efc5050a5d78 /src/char/int_quest.c
parent2961ebba3a7112c1422c63bd6e5c159cfafd07b0 (diff)
parent37d2e16557b1cd9ee755e2792e20ad629d3fcef9 (diff)
downloadhercules-dcee21a1a11c0c6aa5fe884f46bf3022375df3d1.tar.gz
hercules-dcee21a1a11c0c6aa5fe884f46bf3022375df3d1.tar.bz2
hercules-dcee21a1a11c0c6aa5fe884f46bf3022375df3d1.tar.xz
hercules-dcee21a1a11c0c6aa5fe884f46bf3022375df3d1.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/char/int_quest.c')
-rw-r--r--src/char/int_quest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/char/int_quest.c b/src/char/int_quest.c
index 1d64f48a3..036229edd 100644
--- a/src/char/int_quest.c
+++ b/src/char/int_quest.c
@@ -246,14 +246,15 @@ int mapif_parse_quest_save(int fd)
void mapif_send_quests(int fd, int char_id, struct quest *tmp_questlog, int num_quests)
{
- nullpo_retv(tmp_questlog);
WFIFOHEAD(fd,num_quests*sizeof(struct quest)+8);
WFIFOW(fd,0) = 0x3860;
WFIFOW(fd,2) = num_quests*sizeof(struct quest)+8;
WFIFOL(fd,4) = char_id;
- if (num_quests > 0)
+ if (num_quests > 0) {
+ nullpo_retv(tmp_questlog);
memcpy(WFIFOP(fd,8), tmp_questlog, sizeof(struct quest)*num_quests);
+ }
WFIFOSET(fd,num_quests*sizeof(struct quest)+8);
}