Fix lock check

This commit is contained in:
Alexander Batalov 2022-10-03 09:38:43 +03:00
parent 5f9ceb7f5d
commit 16ab9cb958
1 changed files with 1 additions and 1 deletions

View File

@ -3612,7 +3612,7 @@ static void inventoryExamineItem(Object* critter, Object* item)
// Clear item description area. // Clear item description area.
FrmImage backgroundFrmImage; FrmImage backgroundFrmImage;
int backgroundFid = buildFid(OBJ_TYPE_INTERFACE, 48, 0, 0, 0); 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, blitBufferToBuffer(backgroundFrmImage.getData() + INVENTORY_WINDOW_WIDTH * INVENTORY_SUMMARY_Y + INVENTORY_SUMMARY_X,
152, 152,
188, 188,