diff options
author | Max Horn | 2003-04-28 13:16:37 +0000 |
---|---|---|
committer | Max Horn | 2003-04-28 13:16:37 +0000 |
commit | e13e117976dda789d806818add34773dbdd57bb7 (patch) | |
tree | 0730ccc72219317e59a8a222b45d00f87c1732fa /scumm/resource.cpp | |
parent | dc7446f46986d396a92566b9c561645bdfa00e65 (diff) | |
download | scummvm-rg350-e13e117976dda789d806818add34773dbdd57bb7.tar.gz scummvm-rg350-e13e117976dda789d806818add34773dbdd57bb7.tar.bz2 scummvm-rg350-e13e117976dda789d806818add34773dbdd57bb7.zip |
pedantic checks
svn-id: r7177
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index ea83040139..c2726b74b7 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -1236,7 +1236,9 @@ void Scumm::nukeResource(int type, int idx) { } byte *Scumm::findResourceData(uint32 tag, byte *ptr) { - if (_features & GF_SMALL_HEADER) + if (_features & GF_OLD_BUNDLE) + error("findResourceData must not be used in GF_OLD_BUNDLE games"); + else if (_features & GF_SMALL_HEADER) ptr = findResourceSmall(tag, ptr, 0); else ptr = findResource(tag, ptr, 0); |