From d99a033fd692546a29cfd4728dbbc5d26ac5c37f Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 5 May 2018 22:37:07 +0200 Subject: Fix builtin inventory list crash when size = 0 (#7297) --- src/remoteplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remoteplayer.cpp') diff --git a/src/remoteplayer.cpp b/src/remoteplayer.cpp index d070eb7e4..e7c2462b6 100644 --- a/src/remoteplayer.cpp +++ b/src/remoteplayer.cpp @@ -141,7 +141,7 @@ void RemotePlayer::deSerialize(std::istream &is, const std::string &playername, inventory.deSerialize(is); - if (inventory.getList("craftpreview") == NULL) { + if (!inventory.getList("craftpreview") && inventory.getList("craftresult")) { // Convert players without craftpreview inventory.addList("craftpreview", 1); -- cgit v1.2.3