summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-01-29 20:07:39 -0500
committerwushin <pasekei@gmail.com>2016-02-08 18:53:29 -0600
commit8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4 (patch)
treed5c7851d716a1914cff9403bcc1764eb69fd758d /src/map/pc.cpp
parentf593049cd8286f48497782d8bc0afe787724ad5d (diff)
downloadtmwa-8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4.tar.gz
tmwa-8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4.tar.bz2
tmwa-8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4.tar.xz
tmwa-8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4.zip
allow to not allocate stats on CC
do not use sex provided by client for scripts send the correct sex to the client
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 8a5127d..59fbba6 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3361,7 +3361,7 @@ int pc_readparam(dumb_ptr<map_session_data> sd, SP type)
val = unwrap<Species>(sd->status.species);
break;
case SP::SEX:
- val = static_cast<uint8_t>(sd->sex);
+ val = static_cast<uint8_t>(sd->status.sex);
break;
case SP::WEIGHT:
val = sd->weight;