diff options
-rw-r--r-- | engines/teenagent/inventory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/teenagent/inventory.cpp b/engines/teenagent/inventory.cpp index c41ade9b2a..47d99e3abc 100644 --- a/engines/teenagent/inventory.cpp +++ b/engines/teenagent/inventory.cpp @@ -274,11 +274,12 @@ void Inventory::Item::render(Inventory *inventory, InventoryObject *obj, Graphic } Common::String name; - if (inventory->selected_obj && inventory->selected_obj != inventory->hovered_obj) { + if (inventory->selected_obj) { name = inventory->selected_obj->name; name += " & "; } - name += obj->name; + if (inventory->selected_obj != inventory->hovered_obj) + name += obj->name; if (hovered && inventory->_engine->scene->getMessage().empty()) { int w = res->font7.render(NULL, 0, 0, name, 0xd1, true); |