summaryrefslogtreecommitdiff
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
parent519deab5c846169b05b92ca9721dadccd476632f (diff)
downloadtmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.tar.gz
tmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.tar.bz2
tmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.tar.xz
tmwa-a94330e0b5916ddecd98c2fca58ca6799c0770c2.zip
add version check to clif_sendquest
-rw-r--r--src/map/clif.cpp6
-rw-r--r--src/map/pc.cpp3
2 files changed, 7 insertions, 2 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;
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index cb81e29..d2b2f44 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -797,8 +797,7 @@ int pc_authok(AccountId id, int login_id2,
pc_calcstatus(sd, 1);
// Init Quest Log
- if(sd->client_version >= 2)
- clif_sendallquest(sd);
+ clif_sendallquest(sd);
return 0;
}