@@ -1 +1,2 @@
engines/twine/metaengine.cpp
engines/twine/parser/text.cpp
@@ -304,7 +304,7 @@ bool TwinEConsole::doListMenuText(int argc, const char **argv) {
_engine->_text->initTextBank(TextBankId::Inventory_Intro_and_Holomap);
for (int32 i = 0; i < 1000; ++i) {
char buf[256];
if (_engine->_text->getMenuText(i, buf, sizeof(buf))) {
if (_engine->_text->getMenuText((TextId)i, buf, sizeof(buf))) {
debugPrintf("%4i: %s\n", i, buf);
}
}
@@ -67,7 +67,7 @@ bool Holomap::loadLocations() {
_locations[i].angle.x = ClampAngle(stream.readSint16LE());
_locations[i].angle.y = ClampAngle(stream.readSint16LE());
_locations[i].angle.z = ClampAngle(stream.readSint16LE());
_locations[i].textIndex = stream.readUint16LE();
_locations[i].textIndex = (TextId)stream.readUint16LE();

if (_engine->_text->getMenuText(_locations[i].textIndex, _locations[i].name, sizeof(_locations[i].name))) {
debug(2, "Scene %i: %s", i, _locations[i].name);
@@ -46,7 +46,7 @@ class Holomap {

struct Location {
IVec3 angle;
uint16 textIndex = 0;
TextId textIndex = TextId::kNone;
char name[30] = "";
};