1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Inventory: show error on invalid list names (#11368)

This commit is contained in:
SmallJoker 2021-06-20 17:21:50 +02:00 committed by GitHub
parent b10091be9b
commit 2db6b07de1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 12 deletions

View file

@ -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;