aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2012-12-11 03:10:50 +0200
committerFilippos Karapetis2012-12-11 03:10:50 +0200
commite08fa202d6549895a71f3b8cfd258645eff492c0 (patch)
treec1238ae80f92e4d52ca336c4b069adad2c7721d6 /engines
parent6c0a24fd7c2f97393b10b7ddeffefbd912823f53 (diff)
downloadscummvm-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')
-rw-r--r--engines/tinsel/tinsel.cpp3
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) {