mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 18:07:16 +00:00
Many fixes to regressions in perl and cleaning up the final interface
This commit is contained in:
1 parent
56b41c882b
commit
c0d37b2e04
32 files changed
+438
-635
No files matched your search
+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