Revert "don't pass objectId by reference"

This reverts commit 5f3847c4cd.
This commit is contained in:
DarthArgus
2016-11-30 22:28:26 +00:00
parent 31bce71c33
commit 46dc62461d
2 changed files with 7 additions and 7 deletions
@@ -197,7 +197,7 @@ bool ObjvarBuffer::save(DB::Session *session)
// ----------------------------------------------------------------------
void ObjvarBuffer::getObjvarsForObject(const NetworkId objectId, std::vector<DynamicVariableList::MapType::Command> commands) const
void ObjvarBuffer::getObjvarsForObject(const NetworkId &objectId, std::vector<DynamicVariableList::MapType::Command> &commands) const
{
DynamicVariableList::MapType::Command c;
@@ -256,7 +256,7 @@ void ObjvarBuffer::getObjvarsForObject(const NetworkId objectId, std::vector<Dyn
// ----------------------------------------------------------------------
void ObjvarBuffer::updateObjvars(const NetworkId objectId, const std::vector<DynamicVariableList::MapType::Command> commands)
void ObjvarBuffer::updateObjvars(const NetworkId &objectId, const std::vector<DynamicVariableList::MapType::Command> &commands)
{
bool override=false; // flag that we're dealing with the gold data override case (storing an objvar change in the live database, on an object that came from the gold database)
if (ConfigServerDatabase::getEnableGoldDatabase() && objectId < ConfigServerDatabase::getMaxGoldNetworkId())