summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-09-03 22:19:56 +0300
committerAndrei Karas <akaras@inbox.ru>2019-09-03 22:19:56 +0300
commit4d08f967636f9aae862e6d3016a6d5faf0817542 (patch)
treed6a2b8c4bd0dc403991c0a6c9505b72eb38dfdd4
parent0f9a449b36408845280f0fdbe9cf4dc2084a7f8c (diff)
downloadplugin-4d08f967636f9aae862e6d3016a6d5faf0817542.tar.gz
plugin-4d08f967636f9aae862e6d3016a6d5faf0817542.tar.bz2
plugin-4d08f967636f9aae862e6d3016a6d5faf0817542.tar.xz
plugin-4d08f967636f9aae862e6d3016a6d5faf0817542.zip
Disable req attributes checks in items on connect.
-rw-r--r--src/emap/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c
index ec45cdc..011743e 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -293,6 +293,11 @@ int epc_isequip_post(int retVal,
if (!data)
return retVal;
+ // test for missing basic stats calculation
+ if (sd->regen.sregen == NULL)
+ {
+ return retVal;
+ }
if (sd->battle_status.str < data->requiredStr ||
sd->battle_status.agi < data->requiredAgi ||
sd->battle_status.vit < data->requiredVit ||