aboutsummaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-09-27 17:45:44 +0200
committerGitHub <noreply@github.com>2021-09-27 17:45:44 +0200
commitd51d0f3a5a60679436bf7d4e1980f3a82f229848 (patch)
treee6d15df599dd04df76b8493a4cdcaf6b550c4cce /src/inventory.cpp
parent918fbe3ec1667c65a320f1f6b432449f104d8e26 (diff)
downloadminetest-d51d0f3a5a60679436bf7d4e1980f3a82f229848.tar.xz
Various code improvements
* Camera: Fix division by 0 after view bobbing * Remove ignored constness * Connection: Improve window size range limits
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index da6517e62..029fcbf4f 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -995,7 +995,7 @@ const InventoryList *Inventory::getList(const std::string &name) const
return m_lists[i];
}
-const s32 Inventory::getListIndex(const std::string &name) const
+s32 Inventory::getListIndex(const std::string &name) const
{
for(u32 i=0; i<m_lists.size(); i++)
{