SCI: Add kDisplay workarounds for the Hero's Quest demo

svn-id: r51742
This commit is contained in:
Matthew Hoops 2010-08-04 17:50:09 +00:00
parent e5ffc7847c
commit 642b03fb44
3 changed files with 13 additions and 6 deletions

View file

@ -68,6 +68,11 @@ const Common::String &Kernel::getSelectorName(uint selector) {
for (uint loopSelector = _selectorNames.size(); loopSelector <= selector; ++loopSelector)
_selectorNames.push_back(Common::String::printf("<noname%d>", loopSelector));
}
// Ensure that the selector has a name
if (_selectorNames[selector].empty())
_selectorNames[selector] = Common::String::printf("<noname%d>", selector);
return _selectorNames[selector];
}