SWORD25: Fixed compiler warnings

svn-id: r53282
This commit is contained in:
Paul Gilbert 2010-08-23 00:35:50 +00:00 committed by Eugene Sandulenko
parent 5bd5790e57
commit cfc8f84c3e

View File

@ -289,7 +289,7 @@ Resource *OpenGLGfx::LoadResource(const Common::String &FileName) {
// Bild für den Softwarebuffer laden
if (FileName.hasSuffix(PNG_S_EXTENSION)) {
bool Result;
bool Result = false;
SWImage *pImage = new SWImage(FileName, Result);
if (!Result) {
delete pImage;
@ -307,7 +307,7 @@ Resource *OpenGLGfx::LoadResource(const Common::String &FileName) {
// Sprite-Bild laden
if (FileName.hasSuffix(PNG_EXTENSION) || FileName.hasSuffix(B25S_EXTENSION)) {
bool Result;
bool Result = false;
GLImage *pImage = new GLImage(FileName, Result);
if (!Result) {
delete pImage;
@ -338,7 +338,7 @@ Resource *OpenGLGfx::LoadResource(const Common::String &FileName) {
return 0;
}
bool Result;
bool Result = false;
VectorImage *pImage = new VectorImage(pFileData, FileSize, Result);
if (!Result) {
delete pImage;