summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-20 13:52:48 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-20 13:52:48 +0000
commit374e8946609557514509d958353ee48571b5edcf (patch)
tree5ed110250b16e60124d7dcbec7b9d3c09d90e5a2 /src
parent46ad2a8a7ec3cbad577ec5f83b37afc21f657c01 (diff)
downloadhercules-374e8946609557514509d958353ee48571b5edcf.tar.gz
hercules-374e8946609557514509d958353ee48571b5edcf.tar.bz2
hercules-374e8946609557514509d958353ee48571b5edcf.tar.xz
hercules-374e8946609557514509d958353ee48571b5edcf.zip
follow up to r15188 -- mr.ind forgot this little guy, sorry!
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15189 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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