diff --git a/engines/ags/engine/ac/dynobj/script_overlay.cpp b/engines/ags/engine/ac/dynobj/script_overlay.cpp index 83d3619b4e5..879cb35f1ba 100644 --- a/engines/ags/engine/ac/dynobj/script_overlay.cpp +++ b/engines/ags/engine/ac/dynobj/script_overlay.cpp @@ -71,7 +71,7 @@ void ScriptOverlay::Unserialize(int index, Stream *in, size_t data_sz) { overlayId = in->ReadInt32(); in->ReadInt32(); // unused (was text window x padding) in->ReadInt32(); // unused (was text window y padding) - hasInternalRef = in->ReadInt32(); + hasInternalRef = in->ReadInt32() != 0; ccRegisterUnserializedObject(index, this, this); }