Browse Source

fix cursor item being overwritten

pull/5256/head
qndel 4 years ago committed by Anders Jenbo
parent
commit
4d571e0f77
  1. 6
      Source/cursor.cpp

6
Source/cursor.cpp

@ -186,6 +186,12 @@ void NewCursor(const Item &item)
void NewCursor(int cursId)
{
if (pcurs >= CURSOR_FIRSTITEM && cursId > CURSOR_HAND && cursId < CURSOR_HOURGLASS) {
if (!TryDropItem()) {
return;
}
}
if (cursId < CURSOR_HOURGLASS && MyPlayer != nullptr) {
MyPlayer->HoldItem.clear();
}

Loading…
Cancel
Save