]> git.lizzy.rs Git - minetest.git/commit
Fix segfault in drawItems() due to missing inventory list
authorSmallJoker <mk939@ymail.com>
Wed, 29 Dec 2021 18:20:38 +0000 (19:20 +0100)
committerSmallJoker <mk939@ymail.com>
Wed, 29 Dec 2021 18:20:49 +0000 (19:20 +0100)
commit481bb90eac45651ba6f71860ed669341fcbef6f1
tree5d9ee38b226a1f52f4b8191b2f84d5a73cc91100
parent0fa54531d48eb2fcd09377a6fb8e7c81e09ada63
Fix segfault in drawItems() due to missing inventory list

This fixes a nullptr dereference when the specified inventory list is not known.
Happens when HUD elements are sent before the required inventory list is created.
src/client/hud.cpp