aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/prince/prince.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index dee52f7634..ab774c1abe 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -1145,6 +1145,12 @@ uint32 PrinceEngine::getTextWidth(const char *s) {
void PrinceEngine::showTexts(Graphics::Surface *screen) {
for (uint32 slot = 0; slot < kMaxTexts; slot++) {
+
+ if (_showInventoryFlag && slot) {
+ // only slot 0 for inventory
+ break;
+ }
+
Text& text = _textSlots[slot];
if (!text._str && !text._time) {
continue;