diff options
author | Filippos Karapetis | 2012-12-11 03:10:50 +0200 |
---|---|---|
committer | Filippos Karapetis | 2012-12-11 03:10:50 +0200 |
commit | e08fa202d6549895a71f3b8cfd258645eff492c0 (patch) | |
tree | c1238ae80f92e4d52ca336c4b069adad2c7721d6 /engines/tinsel | |
parent | 6c0a24fd7c2f97393b10b7ddeffefbd912823f53 (diff) | |
download | scummvm-rg350-e08fa202d6549895a71f3b8cfd258645eff492c0.tar.gz scummvm-rg350-e08fa202d6549895a71f3b8cfd258645eff492c0.tar.bz2 scummvm-rg350-e08fa202d6549895a71f3b8cfd258645eff492c0.zip |
TINSEL: Handle the invalid max polygons value in DW1 Mac
Diffstat (limited to 'engines/tinsel')
-rw-r--r-- | engines/tinsel/tinsel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tinsel/tinsel.cpp b/engines/tinsel/tinsel.cpp index 721e76dbac..944613bcb7 100644 --- a/engines/tinsel/tinsel.cpp +++ b/engines/tinsel/tinsel.cpp @@ -744,7 +744,8 @@ void LoadBasicChunks() { RegisterIcons(cptr, numObjects); cptr = FindChunk(MASTER_SCNHANDLE, CHUNK_TOTAL_POLY); - if (cptr != NULL) + // Max polygons are 0 in DW1 Mac (both in the demo and the full version) + if (cptr != NULL && *cptr != 0) MaxPolygons(*cptr); if (TinselV2) { |