mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +00:00
DIRECTOR: LINGO: Fix setTheField with string ID
This commit is contained in:
1 parent
f8def75cdc
commit
b0e07fddff
1 file changed
+2
@@ -1863,6 +1863,8 @@ void Lingo::setTheField(Datum &id1, int field, Datum &d) {
|
||||
|
||||
if (id1.type == INT) {
|
||||
id = id1.u.i;
|
||||
} else if (id1.type == STRING) {
|
||||
id = g_lingo->castIdFetch(id1);
|
||||
} else {
|
||||
warning("Lingo::setTheField(): Unknown the cast id type: %s", id1.type2str());
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user