From d4f0392e575c0e8ef2c752a9a0892749f059ad1a Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 9 Aug 2018 10:18:46 +0100 Subject: STARTREK: Compilation Fixes for Various Platforms. --- engines/startrek/intro.cpp | 4 ++-- engines/startrek/space.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/startrek/intro.cpp b/engines/startrek/intro.cpp index 08cd08a71c..7ba865a378 100644 --- a/engines/startrek/intro.cpp +++ b/engines/startrek/intro.cpp @@ -39,8 +39,8 @@ void StarTrekEngine::playIntro() { R3 planetR3 = R3(); planetR3.matrix = initMatrix(); planetR3.field1e = 3; - planetR3.funcPtr1 = NULL; - planetR3.funcPtr2 = NULL; + planetR3.funcPtr1 = 0; + planetR3.funcPtr2 = 0; planetR3.bitmapOffset = 0; _gfx->clearScreenAndPriBuffer(); diff --git a/engines/startrek/space.cpp b/engines/startrek/space.cpp index 0286408ca7..60c37c89db 100644 --- a/engines/startrek/space.cpp +++ b/engines/startrek/space.cpp @@ -228,7 +228,7 @@ void StarTrekEngine::drawR3Shape(R3 *r3) { if (r3->field1e != 3) // TODO: remove this return; - if (r3->funcPtr1 != NULL) { + if (r3->funcPtr1 != 0) { // TODO: call it } @@ -485,7 +485,7 @@ void StarTrekEngine::drawR3Shape(R3 *r3) { } } - if (r3->funcPtr2 != NULL) { + if (r3->funcPtr2 != 0) { // TODO: call it } } -- cgit v1.2.3