Browse Source

use abs

pull/2577/head
BC Ko 5 years ago committed by Anders Jenbo
parent
commit
a02eaeecda
  1. 2
      Source/inv.cpp

2
Source/inv.cpp

@ -451,7 +451,7 @@ void CheckInvPaste(int pnum, Point cursorPosition)
done = false;
} else {
if (player.InvGrid[xx + yy] != 0) {
int8_t iv = std::max<uint8_t>(player.InvGrid[xx + yy], 0);
int8_t iv = abs(player.InvGrid[xx + yy]);
if (it != 0) {
if (it != iv)
done = false;

Loading…
Cancel
Save