]> git.lizzy.rs Git - minetest.git/commit
Inventory: Make addList() consistent (#11382)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 30 Jun 2021 18:39:38 +0000 (20:39 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Jun 2021 18:39:38 +0000 (20:39 +0200)
commitf2fd4432625ee5cf0380bdd006cd1f15d053b12f
treec86099e50c53442900ea034342f9e50f9a87c603
parent72927b73ca857acd4dc5a40a96be220d090436f3
Inventory: Make addList() consistent (#11382)

Fixes list clearing for inv:set_list() using same size, since 2db6b07.
addList() now clears the list in all cases. Use setSize() to resize without clearing.
src/inventory.cpp
src/inventory.h
src/script/common/c_content.cpp