Skip to content

Commit

Permalink
fix loot pouch as quick loot
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus-bona committed Mar 10, 2024
1 parent 47f25af commit 1ce6625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5285,7 +5285,7 @@ void Game::playerSetManagedContainer(uint32_t playerId, ObjectCategory_t categor
}

std::shared_ptr<Container> container = thing->getContainer();
auto allowConfig = !g_configManager().getBoolean(TOGGLE_GOLD_POUCH_ALLOW_ANYTHING, __FUNCTION__) || !g_configManager().getBoolean(TOGGLE_GOLD_POUCH_QUICKLOOT_ONLY, __FUNCTION__);
auto allowConfig = g_configManager().getBoolean(TOGGLE_GOLD_POUCH_ALLOW_ANYTHING, __FUNCTION__) || g_configManager().getBoolean(TOGGLE_GOLD_POUCH_QUICKLOOT_ONLY, __FUNCTION__);
if (!container || (container->getID() == ITEM_GOLD_POUCH && category != OBJECTCATEGORY_GOLD) && !allowConfig) {
player->sendCancelMessage(RETURNVALUE_NOTPOSSIBLE);
return;
Expand Down

0 comments on commit 1ce6625

Please sign in to comment.