From f9776bbe1ddaa68c53e3c6ab61c7895e5478260f Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sun, 8 May 2005 10:07:52 +0000 Subject: Somehow fixed segmentation fault which was occuring on line: this->alpha = alpha; --- src/resources/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 1e186d7b..469f303e 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -341,9 +341,9 @@ void Image::drawPattern(SDL_Surface *screen, int x, int y, int w, int h) } } -void Image::setAlpha(float alpha) +void Image::setAlpha(float a) { - this->alpha = alpha; + alpha = a; #ifndef USE_OPENGL // Set the alpha value this image is drawn at -- cgit v1.2.3-70-g09d2