Skip to content

Commit

Permalink
Fix pcursstashitem comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Jul 13, 2023
1 parent 4f760f6 commit 50c7583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/qol/floatinginfobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ void DrawFloatingItemInfoBox(const Surface &out, Point position)
};

// Prevent top screen clipping for items
if (infoBoxRect.position.y < 0 && (pcursinvitem != -1 || pcursstashitem != -1)) {
if (infoBoxRect.position.y < 0 && (pcursinvitem != -1 || pcursstashitem != StashStruct::EmptyCell)) {
// Display box below item instead of above
infoBoxRect.position.y += (itemSize.height * (INV_SLOT_SIZE_PX + invSlotPadding)) + infoBoxSize.height;
}
Expand Down

0 comments on commit 50c7583

Please sign in to comment.