mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 04:12:17 +00:00
Crash handler: don't hang on a corrupted heap; fix guild tribute names (#5130)
This commit is contained in:
1 parent
c9c8747ac9
commit
a572b03f56
9 files changed
+33
-10
No files matched your search
@@ -3221,8 +3221,10 @@ void Client::Handle_OP_AugmentItem(const EQApplicationPacket *app)
|
||||
break;
|
||||
}
|
||||
|
||||
// a swap targets a filled slot; the old augment comes out below
|
||||
const bool is_swap = in_augment->augment_action == AugmentActions::Swap;
|
||||
if (
|
||||
tobe_auged->IsAugmentSlotAvailable(new_aug->GetAugmentType(), static_cast<uint8>(in_augment->augment_index)) &&
|
||||
tobe_auged->IsAugmentSlotAvailable(new_aug->GetAugmentType(), static_cast<uint8>(in_augment->augment_index), is_swap) &&
|
||||
tobe_auged->AvailableWearSlot(new_aug->GetItem()->Slots)
|
||||
) {
|
||||
old_aug = tobe_auged->RemoveAugment(static_cast<uint8>(in_augment->augment_index));
|
||||
@@ -11861,6 +11863,9 @@ void Client::Handle_OP_PetitionCheckIn(const EQApplicationPacket *app)
|
||||
Petition_Struct* inpet = (Petition_Struct*)app->pBuffer;
|
||||
|
||||
Petition* pet = PetitionList::Instance()->GetPetitionByID(inpet->petnumber);
|
||||
if (!pet) {
|
||||
return;
|
||||
}
|
||||
//if (inpet->urgency != pet->GetUrgency())
|
||||
pet->SetUrgency(inpet->urgency);
|
||||
pet->SetLastGM(GetName());
|
||||
|
||||
Reference in new issue
Block a user