Permalink
Browse files

STARTREK: Initialize more variables in graphics

  • Loading branch information...
Strangerke committed Aug 30, 2018
1 parent 9ac5f6c commit ae512d3bb3130bad8305400b0e526178e1f3b218
Showing with 5 additions and 0 deletions.
  1. +5 −0 engines/startrek/graphics.cpp
@@ -37,6 +37,11 @@ Graphics::Graphics(StarTrekEngine *vm) : _vm(vm), _egaMode(false) {
_egaData = nullptr;
_lutData = nullptr;

for (int i = 0; i < 32; ++i) {
_sprites[i] = nullptr;
_pushedSprites[i] = nullptr;
}

_screenRect = Common::Rect(SCREEN_WIDTH, SCREEN_HEIGHT);

if (ConfMan.hasKey("render_mode"))

0 comments on commit ae512d3

Please sign in to comment.