summaryrefslogtreecommitdiff
path: root/src/char_sql/int_quest.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-10-27 13:54:23 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-10-27 13:54:23 +0000
commit5612c2738964c0747ecf754b7cf5f834b3e09cef (patch)
treecc99b8951fbcce5503b1df3762fbf6ef17790c3f /src/char_sql/int_quest.c
parent8868ae19d71ef5b73fe54d08471da78e0b2e9b38 (diff)
downloadhercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.gz
hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.bz2
hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.xz
hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.zip
Fixed quest will never get erased when it's the only quest you have.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14105 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_quest.c')
-rw-r--r--src/char_sql/int_quest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/int_quest.c b/src/char_sql/int_quest.c
index 16c74fd47..5d84e0b8e 100644
--- a/src/char_sql/int_quest.c
+++ b/src/char_sql/int_quest.c
@@ -112,7 +112,7 @@ int mapif_parse_quest_save(int fd)
memset(qd1, 0, sizeof(qd1));
memset(qd2, 0, sizeof(qd2));
- memcpy(&qd1, RFIFOP(fd,8), RFIFOW(fd,2)-8);
+ if( num1 ) memcpy(&qd1, RFIFOP(fd,8), RFIFOW(fd,2)-8);
num2 = mapif_quests_fromsql(char_id, qd2);
for( i = 0; i < num1; i++ )