summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-05-12 21:45:51 +0200
committerDennis Friis <peavey@inspircd.org>2009-05-12 21:45:51 +0200
commit535a14adae4cdc5e2b8610b1c8e30501c9e95d5f (patch)
tree812231dffc6e7eb6a9d3ae98834bebcd514bf46f /src
parent81efdcf44bc591fb37b724aebff1421bb476556b (diff)
downloadmana-client-535a14adae4cdc5e2b8610b1c8e30501c9e95d5f.tar.gz
mana-client-535a14adae4cdc5e2b8610b1c8e30501c9e95d5f.tar.bz2
mana-client-535a14adae4cdc5e2b8610b1c8e30501c9e95d5f.tar.xz
mana-client-535a14adae4cdc5e2b8610b1c8e30501c9e95d5f.zip
GCC3x does not like static_cast to enum, use old style instead.
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_video.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 9add3251..1c4043f7 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -479,8 +479,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
}
else if (event.getId() == "speech")
{
- Being::Speech val =
- static_cast<Being::Speech>(mSpeechSlider->getValue());
+ Being::Speech val = (Being::Speech)mSpeechSlider->getValue();
mSpeechLabel->setCaption(speechModeToString(val));
mSpeechSlider->setValue(val);
config.setValue("speech", val);