mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Many fixes to regressions in perl and cleaning up the final interface
This commit is contained in:
+3
-1
@@ -333,7 +333,6 @@ void Client::DropItem(int16 slot_id)
|
||||
int i = parse->EventItem(EVENT_DROP_ITEM, this, inst, nullptr, "", 0);
|
||||
if(i != 0) {
|
||||
safe_delete(inst);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// Item doesn't exist in inventory!
|
||||
@@ -349,6 +348,9 @@ void Client::DropItem(int16 slot_id)
|
||||
database.SaveInventory(CharacterID(), nullptr, slot_id);
|
||||
}
|
||||
|
||||
if(!inst)
|
||||
return;
|
||||
|
||||
// Package as zone object
|
||||
Object* object = new Object(this, inst);
|
||||
entity_list.AddObject(object, true);
|
||||
|
||||
Reference in New Issue
Block a user