diff --git a/Source/inv.cpp b/Source/inv.cpp index dc198a5a0..15718c09b 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -2741,11 +2741,13 @@ int __fastcall CalculateGold(int pnum) } // 52571C: using guessed type int drawpanflag; -int __cdecl DropItemBeforeTrig() +BOOL __cdecl DropItemBeforeTrig() { - if (!TryInvPut()) - return 0; - NetSendCmdPItem(TRUE, CMD_PUTITEM, cursmx, cursmy); - SetCursor_(CURSOR_HAND); - return 1; + if (TryInvPut()) { + NetSendCmdPItem(TRUE, CMD_PUTITEM, cursmx, cursmy); + SetCursor_(CURSOR_HAND); + return TRUE; + } + + return FALSE; } diff --git a/Source/inv.h b/Source/inv.h index 5f840863b..9ddcc637b 100644 --- a/Source/inv.h +++ b/Source/inv.h @@ -44,7 +44,7 @@ void __cdecl StartGoldDrop(); int __fastcall UseInvItem(int pnum, int cii); void __cdecl DoTelekinesis(); int __fastcall CalculateGold(int pnum); -int __cdecl DropItemBeforeTrig(); +BOOL __cdecl DropItemBeforeTrig(); /* data */