summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 17:37:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 17:37:23 +0000
commit271374e1b887d92f2a10b564e33a6781065c3d6f (patch)
treecf1c70a8bcd26bb33bc39c69e31e4006db3b874a /src
parent92950d2f309550e21b33d851ef9bbf7906ce5e50 (diff)
downloadmana-271374e1b887d92f2a10b564e33a6781065c3d6f.tar.gz
mana-271374e1b887d92f2a10b564e33a6781065c3d6f.tar.bz2
mana-271374e1b887d92f2a10b564e33a6781065c3d6f.tar.xz
mana-271374e1b887d92f2a10b564e33a6781065c3d6f.zip
Merged changes made for the 0.0.24.1 release (4046:4048 from 0.0.24 branch).
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp8
-rw-r--r--src/winver.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/being.cpp b/src/being.cpp
index e76370fd..31e3eb77 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -418,10 +418,12 @@ Being::drawEmotion(Graphics *graphics, int offsetX, int offsetY)
if (!mEmotion)
return;
- int px = mPx + offsetX + 3;
- int py = mPy + offsetY - 60;
+ const int px = mPx + offsetX + 3;
+ const int py = mPy + offsetY - 60;
+ const int emotionIndex = mEmotion - 1;
- graphics->drawImage(emotionSet->get(mEmotion - 1), px, py);
+ if (emotionIndex >= 0 && emotionIndex < emotionSet->size())
+ graphics->drawImage(emotionSet->get(emotionIndex), px, py);
}
void
diff --git a/src/winver.h b/src/winver.h
index 02d48f71..52d90315 100644
--- a/src/winver.h
+++ b/src/winver.h
@@ -2,5 +2,5 @@
#define VER_MAJOR 0
#define VER_MINOR 0
#define VER_RELEASE 24
-#define VER_BUILD 0
-#define PACKAGE_VERSION "0.0.24"
+#define VER_BUILD 1
+#define PACKAGE_VERSION "0.0.24.1"