Browse Source

Avoid overzealous / leaked copy

This was present to try and avoid deletes; should no longer be
necessary.
nosoop 1 year ago
parent
commit
bf3f136ee0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      econmanager.cpp

+ 1 - 1
econmanager.cpp

@@ -107,7 +107,7 @@ bool CEconManager::InsertOrReplaceAttribute(KeyValues *pAttribKV) {
 }
 
 bool CEconManager::RegisterAttribute(KeyValues* pAttribKV) {
-	AutoKeyValues kv{pAttribKV->MakeCopy()};
+	AutoKeyValues kv{pAttribKV};
 	std::string attrName = kv->GetString("name");
 	if (attrName.empty()) {
 		attrName = kv->GetString("attribute_class");