mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 21:58:22 +00:00
GetAugmentIDAt() Fix.
This commit is contained in:
+1
-1
@@ -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)
|
// 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)
|
// 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];
|
const ItemInst* inst = m_inv[slot_id];
|
||||||
if (inst)
|
if (inst)
|
||||||
if (inst->GetAugmentItemID(augslot))
|
if (inst->GetAugmentItemID(augslot))
|
||||||
|
|||||||
@@ -2982,7 +2982,7 @@ XS(XS_Client_GetAugmentIDAt)
|
|||||||
Perl_croak(aTHX_ "Usage: Client::GetAugmentIDAt(THIS, slot_id, augslot)");
|
Perl_croak(aTHX_ "Usage: Client::GetAugmentIDAt(THIS, slot_id, augslot)");
|
||||||
{
|
{
|
||||||
Client * THIS;
|
Client * THIS;
|
||||||
uint32 RETVAL;
|
int32 RETVAL;
|
||||||
dXSTARG;
|
dXSTARG;
|
||||||
int16 slot_id = (int16)SvIV(ST(1));
|
int16 slot_id = (int16)SvIV(ST(1));
|
||||||
int16 augslot = (uint8)SvIV(ST(2));
|
int16 augslot = (uint8)SvIV(ST(2));
|
||||||
@@ -2997,7 +2997,7 @@ XS(XS_Client_GetAugmentIDAt)
|
|||||||
Perl_croak(aTHX_ "THIS is nullptr, avoiding crash.");
|
Perl_croak(aTHX_ "THIS is nullptr, avoiding crash.");
|
||||||
|
|
||||||
RETVAL = THIS->GetAugmentIDAt(slot_id, augslot);
|
RETVAL = THIS->GetAugmentIDAt(slot_id, augslot);
|
||||||
XSprePUSH; PUSHu((UV)RETVAL);
|
XSprePUSH; PUSHi((IV)RETVAL);
|
||||||
}
|
}
|
||||||
XSRETURN(1);
|
XSRETURN(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user