mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 15:52:26 +00:00
Crash fixes
This commit is contained in:
parent
4e3842b9d8
commit
6f67577115
@ -283,7 +283,7 @@ void Object::HandleCombine(Client* user, const NewCombine_Struct* in_combine, Ob
|
|||||||
}
|
}
|
||||||
|
|
||||||
container = inst;
|
container = inst;
|
||||||
if (container->GetItem()->BagType == BagTypeTransformationmold) {
|
if (containe->GetItem() && container->GetItem()->BagType == BagTypeTransformationmold) {
|
||||||
const ItemInst* inst = container->GetItem(0);
|
const ItemInst* inst = container->GetItem(0);
|
||||||
bool AllowAll = RuleB(Inventory, AllowAnyWeaponTransformation);
|
bool AllowAll = RuleB(Inventory, AllowAnyWeaponTransformation);
|
||||||
if (inst && ItemInst::CanTransform(inst->GetItem(), container->GetItem(), AllowAll)) {
|
if (inst && ItemInst::CanTransform(inst->GetItem(), container->GetItem(), AllowAll)) {
|
||||||
@ -304,7 +304,7 @@ void Object::HandleCombine(Client* user, const NewCombine_Struct* in_combine, Ob
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (container->GetItem()->BagType == BagTypeDetransformationmold) {
|
if (container->GetItem() && container->GetItem()->BagType == BagTypeDetransformationmold) {
|
||||||
const ItemInst* inst = container->GetItem(0);
|
const ItemInst* inst = container->GetItem(0);
|
||||||
if (inst && inst->GetOrnamentationIcon() && inst->GetOrnamentationIcon()) {
|
if (inst && inst->GetOrnamentationIcon() && inst->GetOrnamentationIcon()) {
|
||||||
const Item_Struct* new_weapon = inst->GetItem();
|
const Item_Struct* new_weapon = inst->GetItem();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user