inventory convert fix (items count)

This commit is contained in:
MihailRis
2024-05-05 17:49:17 +03:00
parent bad871b0a2
commit 2a77c24414
5 changed files with 16 additions and 4 deletions
+4
View File
@@ -335,6 +335,10 @@ Map& Map::put(std::string key, std::unique_ptr<Value> value) {
return *this;
}
void Map::remove(const std::string& key) {
values.erase(key);
}
List& Map::putList(std::string key) {
List* arr = new List();
put(key, arr);