Swap saving now works correctly except for cursor items which wont be reloaded correctly as we don't send cursor on login yet. Also added check for bag into another bag src bag needs to have nothing in it first.

This commit is contained in:
KimLS committed 2015-03-04 19:33:01 -08:00
1 parent 972d3d8874
commit 9fcdf5367e
10 files changed
+290 -8

No files matched your search

+2
View File
@@ -47,6 +47,7 @@
#include "../common/spdat.h"
#include "../common/string_util.h"
#include "../common/zone_numbers.h"
#include "../common/inventory_db_data_model.h"
#include "event_codes.h"
#include "guild_mgr.h"
#include "merc.h"
@@ -1289,6 +1290,7 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
m_inventory.SetRace(GetBaseRace());
m_inventory.SetClass(GetBaseClass());
m_inventory.SetDeity(GetDeity());
m_inventory.SetDataModel(new EQEmu::InventoryDatabaseDataModel(&database, CharacterID()));
loaditems = database.GetInventory(cid, &m_inventory); /* Load Character Inventory */
/* Load AdventureStats */