From 5ea29710f07cd0284693535bfc7c89ed145f8ac9 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 23 Nov 2019 21:38:14 -0500 Subject: [PATCH] Minor code cleanup --- src/game/boe.text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/boe.text.cpp b/src/game/boe.text.cpp index 484f3536..24da0e0a 100644 --- a/src/game/boe.text.cpp +++ b/src/game/boe.text.cpp @@ -320,13 +320,13 @@ void put_item_screen(eItemWinMode screen_num) { // make go faster, and I got lazy. if((stat_screen_mode == MODE_SHOP) && ((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use - place_item_graphic(i,univ.party[pc].items[i_num].graphic_num); + place_item_graphic(i,item.graphic_num); if(item.can_use()) // place use if can place_item_button(ITEMBTN_NORM,i); else place_item_button(ITEMBTN_ALL,i); } else { - place_item_graphic(i,univ.party[pc].items[i_num].graphic_num); + place_item_graphic(i,item.graphic_num); place_item_button(3,i,ITEMBTN_INFO); // info button if((stat_screen_mode == MODE_INVEN) && ((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use