From b61089093f4ebed2ebe5b57702417d7638ee6df2 Mon Sep 17 00:00:00 2001 From: inhyositsu Date: Thu, 29 Oct 2020 20:47:42 +0800 Subject: [PATCH] Corrects BuyingStore parsing (#5502) * Fixes a label parse check when loading BuyingStore values for items. Thanks to @inhyositsu! --- src/map/itemdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/itemdb.cpp b/src/map/itemdb.cpp index a3f4e4eb34..02b9a7f21c 100644 --- a/src/map/itemdb.cpp +++ b/src/map/itemdb.cpp @@ -534,14 +534,14 @@ uint64 ItemDatabase::parseBodyNode(const YAML::Node &node) { if (this->nodeExists(node, "Flags")) { const YAML::Node &flagNode = node["Flags"]; - if (this->nodeExists(flagNode, "Buyingstore")) { + if (this->nodeExists(flagNode, "BuyingStore")) { bool active; - if (!this->asBool(flagNode, "Buyingstore", active)) + if (!this->asBool(flagNode, "BuyingStore", active)) return 0; if (!itemdb_isstackable2(item.get()) && active) { - this->invalidWarning(flagNode["Buyingstore"], "Non-stackable item cannot be enabled for buying store.\n"); + this->invalidWarning(flagNode["BuyingStore"], "Non-stackable item cannot be enabled for buying store.\n"); active = false; }