diff --git a/modules/game_inventory/inventory.lua b/modules/game_inventory/inventory.lua index 9cafb6c1..1dcc7c05 100644 --- a/modules/game_inventory/inventory.lua +++ b/modules/game_inventory/inventory.lua @@ -81,7 +81,7 @@ function refresh() else onInventoryChange(player, i, nil) end - toggleAdventurerStyle(Bit.hasBit(player:getBlessings(), Blessings.Adventurer)) + toggleAdventurerStyle(player and Bit.hasBit(player:getBlessings(), Blessings.Adventurer) or false) end purseButton:setVisible(g_game.getFeature(GamePurseSlot))