diff options
author | Bastien Bouclet | 2018-04-22 08:30:08 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-04-22 08:30:08 +0200 |
commit | 086ab443c015274a2aceca3ef5c943ebd3aff792 (patch) | |
tree | 2f296cb689ea53e182d1d8b243dd1a0d6608ea27 | |
parent | 818117bda25c0cf6336b4fa8ae0d0bf0ce5e30a1 (diff) | |
download | scummvm-rg350-086ab443c015274a2aceca3ef5c943ebd3aff792.tar.gz scummvm-rg350-086ab443c015274a2aceca3ef5c943ebd3aff792.tar.bz2 scummvm-rg350-086ab443c015274a2aceca3ef5c943ebd3aff792.zip |
MOHAWK: LB: Mark a switch fall-trough as intentional
Without the fall-through, the function would unconditionally dereference
an uninitialized pointer.
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 95b4722d81..b9e54e4e20 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -837,6 +837,7 @@ void LBPage::loadBITL(uint16 resourceId) { break; default: warning("Unknown item type %04x", type); + // fall through case 3: // often used for buttons res = new LBItem(_vm, this, rect); break; |