aboutsummaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-06-20 17:21:50 +0200
committerGitHub <noreply@github.com>2021-06-20 17:21:50 +0200
commit2db6b07de1e45c56f6135363939dbb3781336514 (patch)
tree58ca691aee214dad63af5359a3b59c0e743189d0 /src/inventory.h
parentb10091be9b6b6c74a170b9444f856f83dd3fe952 (diff)
downloadminetest-2db6b07de1e45c56f6135363939dbb3781336514.tar.gz
minetest-2db6b07de1e45c56f6135363939dbb3781336514.tar.bz2
minetest-2db6b07de1e45c56f6135363939dbb3781336514.zip
Inventory: show error on invalid list names (#11368)
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h
index f36bc57cf..fbf995fab 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -298,6 +298,7 @@ public:
void serialize(std::ostream &os, bool incremental = false) const;
void deSerialize(std::istream &is);
+ // Adds a new list or clears and resizes an existing one
InventoryList * addList(const std::string &name, u32 size);
InventoryList * getList(const std::string &name);
const InventoryList * getList(const std::string &name) const;