diff options
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 594b1c0..a914653 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -187,3 +187,17 @@ void epc_validate_levels(void) } hookStop(); } + +int epc_isequip_post(int retVal, struct map_session_data *sd, int *nPtr) +{ + const int n = *nPtr; + if (retVal) + { + if (!sd) + return 0; + + if (n < 0 || n >= MAX_INVENTORY) + return 0; + } + return retVal; +} |