summaryrefslogtreecommitdiff
path: root/src/map/vending.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/vending.c')
-rw-r--r--src/map/vending.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index a34c715ee..af7a402a9 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -254,8 +254,8 @@ void vending_openvending(struct map_session_data* sd, const char* message, bool
if( !flag ) // cancelled
return; // nothing to do
- if ( pc_isdead(sd) || pc_istrading(sd))
- return; // can't open vendings lying dead || can't have 2 shops at once
+ if ( pc_isdead(sd) || !sd->state.prevend || pc_istrading(sd))
+ return; // can't open vendings lying dead || didn't use via the skill (wpe/hack) || can't have 2 shops at once
vending_skill_lvl = pc_checkskill(sd, MC_VENDING);
// skill level and cart check