diff options
| author | Filippos Karapetis | 2019-05-27 14:50:26 +0300 |
|---|---|---|
| committer | Filippos Karapetis | 2019-05-27 14:53:44 +0300 |
| commit | f6af273fca66678bfa805184b8e6ac5ea4892291 (patch) | |
| tree | ecebfa0b26220624038b8b92fa7c6f048924b262 /engines/startrek/math.cpp | |
| parent | f4e8eed13d7da5bcd87db7424358bf0d8759208f (diff) | |
| download | scummvm-rg350-f6af273fca66678bfa805184b8e6ac5ea4892291.tar.gz scummvm-rg350-f6af273fca66678bfa805184b8e6ac5ea4892291.tar.bz2 scummvm-rg350-f6af273fca66678bfa805184b8e6ac5ea4892291.zip | |
STARTREK: Fix MSVC warnings
- Disable duplicate if block
- Fix potentially uninitialized variables
- Change _activeMenu to be a regular pointer, instead of a SharedPtr - it was not
initialized correctly
- Fix struct packing in structs with pointers to complex objects
- Fix sound initialization
- Fix memory leaks (handles to files which were never deleted)
Diffstat (limited to 'engines/startrek/math.cpp')
| -rw-r--r-- | engines/startrek/math.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/startrek/math.cpp b/engines/startrek/math.cpp index 7770ed3a44..f9527dd413 100644 --- a/engines/startrek/math.cpp +++ b/engines/startrek/math.cpp @@ -83,7 +83,7 @@ Angle StarTrekEngine::atan2(int32 deltaX, int32 deltaY) { int16 endIndex = 128; int16 index = 0; - int16 angle; + int16 angle = 0; while (index <= endIndex) { angle = (index + endIndex) / 2; Fixed14 tableValue = Fixed14::fromRaw(atanTable[angle]); |
