Fix for adventurer blessing style

This commit is contained in:
TheSumm 2014-12-30 16:40:03 +01:00
parent 16f6a0019c
commit 50c36bb2ba
1 changed files with 1 additions and 1 deletions

View File

@ -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))