summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-18 13:00:37 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-18 13:16:42 -0400
commita94330e0b5916ddecd98c2fca58ca6799c0770c2 (patch)
tree6889d5ab71fa22ec9d3c1a6470695b2cdb96a0c2 /src/map/clif.cpp
parent519deab5c846169b05b92ca9721dadccd476632f (diff)
downloadtmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.tar.gz
tmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.tar.bz2
tmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.tar.xz
tmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.zip
add version check to clif_sendquest
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 327283a..2b4570e 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -4724,6 +4724,9 @@ void clif_sendallquest(dumb_ptr<map_session_data> sd)
if (!sd->sess)
return;
+ if(sd->client_version < 2)
+ return;
+
Session *s = sd->sess;
Packet_Head<0x0215> head_215;
std::vector<Packet_Repeat<0x0215>> repeat_215;
@@ -4758,6 +4761,9 @@ void clif_sendquest(dumb_ptr<map_session_data> sd, QuestId questid, int value)
if (!sd->sess)
return;
+ if(sd->client_version < 2)
+ return;
+
Session *s = sd->sess;
Packet_Fixed<0x0214> fixed;