mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
introduce buying runes/potions via bp in all selling npcs
This commit is contained in:
@@ -1113,7 +1113,7 @@ void BehaviourDatabase::checkAction(const NpcBehaviourAction* action, Player* pl
|
||||
|
||||
Container* realContainer = container->getContainer();
|
||||
for (int32_t c = 0; c < std::max<int32_t>(1, realContainer->capacity()); c++) {
|
||||
Item* item = Item::CreateItem(itemId, data);
|
||||
Item* item = Item::CreateItem(itemId, data == -1 ? 0 : data);
|
||||
if (!item) {
|
||||
std::cout << "[Error - BehaviourDatabase::checkAction]: CreateContainer - failed to create item" << std::endl;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user