From 16ab9cb958dfb6902287fed9a9b0d2b11dc2d571 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 3 Oct 2022 09:38:43 +0300 Subject: [PATCH] Fix lock check --- src/inventory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory.cc b/src/inventory.cc index d702e9e..6d506e1 100644 --- a/src/inventory.cc +++ b/src/inventory.cc @@ -3612,7 +3612,7 @@ static void inventoryExamineItem(Object* critter, Object* item) // Clear item description area. FrmImage backgroundFrmImage; int backgroundFid = buildFid(OBJ_TYPE_INTERFACE, 48, 0, 0, 0); - if (backgroundFrmImage.lock(backgroundFid) != NULL) { + if (backgroundFrmImage.lock(backgroundFid)) { blitBufferToBuffer(backgroundFrmImage.getData() + INVENTORY_WINDOW_WIDTH * INVENTORY_SUMMARY_Y + INVENTORY_SUMMARY_X, 152, 188,