diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-06-25 11:39:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-25 11:39:39 +0200 |
commit | c08cc0533fbf344be5243485f39a471268855149 (patch) | |
tree | f9b5c51903572e2eafa7b4781a06768b1ed554db /src/database-sqlite3.cpp | |
parent | cad10ce3b747b721fd63784915e05f12bc488128 (diff) | |
download | minetest-c08cc0533fbf344be5243485f39a471268855149.tar.gz minetest-c08cc0533fbf344be5243485f39a471268855149.tar.bz2 minetest-c08cc0533fbf344be5243485f39a471268855149.zip |
Inventory: Fix wrong stack size behaviour and item loss (#6039)
Also fix itemFits and remove constness-nonsense
Diffstat (limited to 'src/database-sqlite3.cpp')
-rw-r--r-- | src/database-sqlite3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database-sqlite3.cpp b/src/database-sqlite3.cpp index 22765c8d2..77451fadb 100644 --- a/src/database-sqlite3.cpp +++ b/src/database-sqlite3.cpp @@ -565,7 +565,7 @@ bool PlayerDatabaseSQLite3::loadPlayer(RemotePlayer *player, PlayerSAO *sao) if (itemStr.length() > 0) { ItemStack stack; stack.deSerialize(itemStr); - invList->addItem(sqlite_to_uint(m_stmt_player_load_inventory_items, 0), stack); + invList->changeItem(sqlite_to_uint(m_stmt_player_load_inventory_items, 0), stack); } } sqlite3_reset(m_stmt_player_load_inventory_items); |