diff --git a/lua/app/ui/currency_bar/cell/currency_cell.lua b/lua/app/ui/currency_bar/cell/currency_cell.lua index b7b5c1f6..4e1cdad1 100644 --- a/lua/app/ui/currency_bar/cell/currency_cell.lua +++ b/lua/app/ui/currency_bar/cell/currency_cell.lua @@ -72,7 +72,7 @@ function ResourceCell:refreshTextRightNow() local count = obj:getNum() if count < 0 then self.numTx:setText("0") - elseif obj:getItemType() == GConst.ItemConst.ITEM_ID_VIT then + elseif obj:getId() == GConst.ItemConst.ITEM_ID_VIT then self.numTx:setText(GFunc.num2Str(count) .. "/" .. DataManager.PlayerData:getMaxVit()) else self.numTx:setText(GFunc.num2Str(count))