summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-05-08 10:07:52 +0000
committerAaron Marks <nymacro@gmail.com>2005-05-08 10:07:52 +0000
commitf9776bbe1ddaa68c53e3c6ab61c7895e5478260f (patch)
treeb22bab3ffbe8336681bb2c7613c5c72f0cd9abf0 /src/resources/image.cpp
parente75dfa4273a33a772162e57731f517d83133b82a (diff)
downloadmana-f9776bbe1ddaa68c53e3c6ab61c7895e5478260f.tar.gz
mana-f9776bbe1ddaa68c53e3c6ab61c7895e5478260f.tar.bz2
mana-f9776bbe1ddaa68c53e3c6ab61c7895e5478260f.tar.xz
mana-f9776bbe1ddaa68c53e3c6ab61c7895e5478260f.zip
Somehow fixed segmentation fault which was occuring on line:
this->alpha = alpha;
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
1 files 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