diff options
author | Eugene Sandulenko | 2013-10-30 09:18:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-30 09:18:14 +0200 |
commit | a08af2952e57098feb64621cea805be2b9bf6a18 (patch) | |
tree | b65daa763223c91146dcc9930e6132963c7d99cb | |
parent | cf6771c5d541bfdd85156600a251f206da3fa39a (diff) | |
download | scummvm-rg350-a08af2952e57098feb64621cea805be2b9bf6a18.tar.gz scummvm-rg350-a08af2952e57098feb64621cea805be2b9bf6a18.tar.bz2 scummvm-rg350-a08af2952e57098feb64621cea805be2b9bf6a18.zip |
SWORD1: Fix unitialized variables. CID 1002991
-rw-r--r-- | engines/sword1/screen.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp index ae128b8c05..76957e0a70 100644 --- a/engines/sword1/screen.cpp +++ b/engines/sword1/screen.cpp @@ -57,6 +57,30 @@ Screen::Screen(OSystem *system, ResMan *pResMan, ObjectMan *pObjMan) { _psxCache.extPlxCache = NULL; _oldScrollX = 0; _oldScrollY = 0; + + _textMan = 0; + + for (int i = 0; i < 4; i++) + _layerGrid[i] = 0; + + for (int i = 0; i < 4; i++) + _layerBlocks[i] = 0; + + _parallax[0] = 0; + _parallax[1] = 0; + + _fullRefresh = 0; + + for (int i = 0; i < MAX_SORT; i++) { + _sortList[i].id = 0; + _sortList[i].y = 0; + } + _scrnSizeX = 0; + _scrnSizeY = 0; + _gridSizeX = 0; + _gridSizeY = 0; + _fadingDirection = 0; + _isBlack = 0; } Screen::~Screen() { |