mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-01 01:16:03 -04:00
turn the functions in the persister that return Snapshot & into functions that return Snapshot * since everything else does that way already
This commit is contained in:
@@ -113,9 +113,9 @@ void SwgPersister::getMoneyFromOfflineObject(uint32 replyServer, NetworkId const
|
||||
SwgSnapshot * snapshot=nullptr;
|
||||
|
||||
if (hasDataForObject(sourceObject))
|
||||
snapshot=safe_cast<SwgSnapshot*>(&getSnapshotForObject(sourceObject, 0));
|
||||
snapshot=safe_cast<SwgSnapshot*>(getSnapshotForObject(sourceObject, 0));
|
||||
else
|
||||
snapshot=safe_cast<SwgSnapshot*>(&getSnapshotForServer(0));
|
||||
snapshot=safe_cast<SwgSnapshot*>(getSnapshotForServer(0));
|
||||
|
||||
snapshot->getMoneyFromOfflineObject(replyServer, sourceObject, amount, replyTo, successCallback, failCallback, packedDictionary);
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ SwgSnapshot::SwgSnapshot(DB::ModeQuery::Mode mode, bool useGoldDatabase) :
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
SwgSnapshot::~SwgSnapshot(){
|
||||
|
||||
m_bufferList.clear();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user