diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-19 14:26:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-19 14:26:43 +0400 |
commit | c3041ae7cda20c78040e7deea17530fe5f41029d (patch) | |
tree | 3190e3af2ab7f81833f379771f5fdcd8819bd635 /source/gameengine/VideoTexture/ImageBase.cpp | |
parent | e611c4756fa17c57855123dc2b5c2c2408b0d790 (diff) |
- fix for BGE warnings
- when C++ uses guardedalloc SYS_DeleteSystem was called after MEM_printmemlist(), making it look like there was a leak.
Diffstat (limited to 'source/gameengine/VideoTexture/ImageBase.cpp')
-rw-r--r-- | source/gameengine/VideoTexture/ImageBase.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/gameengine/VideoTexture/ImageBase.cpp b/source/gameengine/VideoTexture/ImageBase.cpp index 5e2841271a6..0740afed2c6 100644 --- a/source/gameengine/VideoTexture/ImageBase.cpp +++ b/source/gameengine/VideoTexture/ImageBase.cpp @@ -219,15 +219,17 @@ bool ImageBase::checkSourceSizes (void) // get size of current source short * curSize = (*it)->getSize(); // if size is available and is not empty - if (curSize[0] != 0 && curSize[1] != 0) + if (curSize[0] != 0 && curSize[1] != 0) { // if reference size is not set - if (refSize == NULL) + if (refSize == NULL) { // set current size as reference refSize = curSize; // otherwise check with current size - else if (curSize[0] != refSize[0] || curSize[1] != refSize[1]) + } else if (curSize[0] != refSize[0] || curSize[1] != refSize[1]) { // if they don't match, report it return false; + } + } } // all sizes match return true; |