summaryrefslogtreecommitdiff
path: root/src/gui/shortcut
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-05 19:52:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-05 20:00:43 +0300
commit64c2bcc59b5b807c962da3397acdd941e7d20c9e (patch)
tree1fd4cfdd77d01f9b76900524a615fe78c5dc04ab /src/gui/shortcut
parentb7f3981fc5ee94a6d8989a29f850ee3a3eaa7baf (diff)
downloadManaVerse-64c2bcc59b5b807c962da3397acdd941e7d20c9e.tar.gz
ManaVerse-64c2bcc59b5b807c962da3397acdd941e7d20c9e.tar.bz2
ManaVerse-64c2bcc59b5b807c962da3397acdd941e7d20c9e.tar.xz
ManaVerse-64c2bcc59b5b807c962da3397acdd941e7d20c9e.zip
Fix compilation for macosx.v1.7.8.5
Diffstat (limited to 'src/gui/shortcut')
-rw-r--r--src/gui/shortcut/itemshortcut.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp
index 526baa265..7b9bab6e6 100644
--- a/src/gui/shortcut/itemshortcut.cpp
+++ b/src/gui/shortcut/itemshortcut.cpp
@@ -68,11 +68,12 @@ void ItemShortcut::load()
const Configuration *cfg = &serverConfig;
if (mNumber != 0)
{
- name = std::string("shortcut").append(toString(mNumber)).append("_");
+ name = std::string("shortcut").append(
+ toString(CAST_S32(mNumber))).append("_");
color = std::string("shortcutColor").append(
- toString(mNumber)).append("_");
+ toString(CAST_U32(mNumber))).append("_");
data = std::string("shortcutData").append(
- toString(mNumber)).append("_");
+ toString(CAST_U32(mNumber))).append("_");
}
else
{
@@ -102,11 +103,12 @@ void ItemShortcut::save() const
return;
if (mNumber != 0)
{
- name = std::string("shortcut").append(toString(mNumber)).append("_");
+ name = std::string("shortcut").append(
+ toString(CAST_S32(mNumber))).append("_");
color = std::string("shortcutColor").append(
- toString(mNumber)).append("_");
+ toString(CAST_U32(mNumber))).append("_");
data = std::string("shortcutData").append(
- toString(mNumber)).append("_");
+ toString(CAST_U32(mNumber))).append("_");
}
else
{