mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 00:32:25 +00:00
GetAugmentIDAt() Fix.
This commit is contained in:
parent
727c51fb68
commit
3a4250603a
@ -671,7 +671,7 @@ uint32 Client::GetItemIDAt(int16 slot_id) {
|
||||
|
||||
// Returns an augment's ID that's in an item (returns INVALID_ID if not found)
|
||||
// Pass in the slot ID of the item and which augslot you want to check (0-4)
|
||||
uint32 Client::GetAugmentIDAt(int16 slot_id, uint8 augslot) {
|
||||
int32 Client::GetAugmentIDAt(int16 slot_id, uint8 augslot) {
|
||||
const ItemInst* inst = m_inv[slot_id];
|
||||
if (inst)
|
||||
if (inst->GetAugmentItemID(augslot))
|
||||
|
||||
@ -2982,7 +2982,7 @@ XS(XS_Client_GetAugmentIDAt)
|
||||
Perl_croak(aTHX_ "Usage: Client::GetAugmentIDAt(THIS, slot_id, augslot)");
|
||||
{
|
||||
Client * THIS;
|
||||
uint32 RETVAL;
|
||||
int32 RETVAL;
|
||||
dXSTARG;
|
||||
int16 slot_id = (int16)SvIV(ST(1));
|
||||
int16 augslot = (uint8)SvIV(ST(2));
|
||||
@ -2997,7 +2997,7 @@ XS(XS_Client_GetAugmentIDAt)
|
||||
Perl_croak(aTHX_ "THIS is nullptr, avoiding crash.");
|
||||
|
||||
RETVAL = THIS->GetAugmentIDAt(slot_id, augslot);
|
||||
XSprePUSH; PUSHu((UV)RETVAL);
|
||||
XSprePUSH; PUSHi((IV)RETVAL);
|
||||
}
|
||||
XSRETURN(1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user