TrinityCore/TrinityCore — comment on commit d9406b0e5940d2e18c72ed10a45658caf5c508cd
File: src/server/scripts/Commands/cs_npc.cpp line 173
By grinder1:

maybe you should do it this way?

int32 item_int = atol(pitem);
if (item_int <= 0)
item_int = abs(item_int);

or that

int32 item_int = abs(atol(pitem));