Skip to content

Commit

Permalink
Don't draw non-item cursors as items
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills authored and AJenbo committed Jun 23, 2024
1 parent 8a135c9 commit e0dddb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ void NewCursor(int cursId)
void DrawSoftwareCursor(const Surface &out, Point position, int cursId)
{
const ClxSprite sprite = GetInvItemSprite(cursId);
if (!MyPlayer->HoldItem.isEmpty()) {
if (cursId >= CURSOR_FIRSTITEM && !MyPlayer->HoldItem.isEmpty()) {
const auto &heldItem = MyPlayer->HoldItem;
ClxDrawOutline(out, GetOutlineColor(heldItem, true), position, sprite);
DrawItem(heldItem, out, position, sprite);
Expand Down

0 comments on commit e0dddb1

Please sign in to comment.