Permalink
Browse files

STARTREK: Fix an uninitialized variable in bitmap

  • Loading branch information...
Strangerke committed Aug 30, 2018
1 parent 543f766 commit 0a70f6f18b296da01fc0a1c739fb472283d3b633
Showing with 1 addition and 0 deletions.
  1. +1 −0 engines/startrek/bitmap.cpp
@@ -47,6 +47,7 @@ Bitmap::Bitmap(const Bitmap &bitmap) {

Bitmap::Bitmap(int w, int h) : width(w), height(h), xoffset(0), yoffset(0) {
pixels = new byte[width * height];
pixelsArraySize = width * height;
}

Bitmap::~Bitmap() {

0 comments on commit 0a70f6f

Please sign in to comment.