summaryrefslogtreecommitdiff
path: root/src/map/searchstore.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-27 18:43:31 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-27 18:43:31 +0000
commitfd625485b8ab08aa9df7115d630076cb2ca6d9af (patch)
tree48bbfa255756163d6943a21968726bf309d354a7 /src/map/searchstore.c
parentbf8bae03ea42ffb8684beb999ca1101e5f11fb48 (diff)
downloadhercules-fd625485b8ab08aa9df7115d630076cb2ca6d9af.tar.gz
hercules-fd625485b8ab08aa9df7115d630076cb2ca6d9af.tar.bz2
hercules-fd625485b8ab08aa9df7115d630076cb2ca6d9af.tar.xz
hercules-fd625485b8ab08aa9df7115d630076cb2ca6d9af.zip
* Added separate character state for vending (like for buyingstore), instead of vender_id != 0 (follow up to r14682, related r14713).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14762 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/searchstore.c')
-rw-r--r--src/map/searchstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/searchstore.c b/src/map/searchstore.c
index d7378ab36..76f0d4e2e 100644
--- a/src/map/searchstore.c
+++ b/src/map/searchstore.c
@@ -71,7 +71,7 @@ static bool searchstore_hasstore(struct map_session_data* sd, unsigned char type
{
switch( type )
{
- case SEARCHTYPE_VENDING: return (bool)( sd->vender_id != 0 );
+ case SEARCHTYPE_VENDING: return sd->state.vending;
case SEARCHTYPE_BUYING_STORE: return sd->state.buyingstore;
}
return false;