summaryrefslogtreecommitdiff
path: root/src/textcommand.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 01:53:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 01:53:51 +0300
commit2492b561385859b7ef76fe816a8dc845f0b9bd09 (patch)
tree62633f8cd7c027c2a8e1bae61264a79394aeb751 /src/textcommand.cpp
parentce14a018a6f66aa1309ebe71a8217082d83cd0da (diff)
downloadplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.gz
plus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.bz2
plus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.xz
plus-2492b561385859b7ef76fe816a8dc845f0b9bd09.zip
Fix some casts between signed and unsigned in some files.
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r--src/textcommand.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textcommand.cpp b/src/textcommand.cpp
index bf5c994a0..c7ec01d0f 100644
--- a/src/textcommand.cpp
+++ b/src/textcommand.cpp
@@ -35,7 +35,7 @@
#include "debug.h"
#ifdef TMWA_SUPPORT
-TextCommand::TextCommand(const unsigned int id,
+TextCommand::TextCommand(const int id,
const std::string &symbol,
const std::string &command,
const std::string &comment,
@@ -44,7 +44,7 @@ TextCommand::TextCommand(const unsigned int id,
const unsigned int basicLvl,
const MagicSchoolT school,
const unsigned int schoolLvl,
- const int mana) :
+ const unsigned int mana) :
mCommand(command),
mComment(comment),
mSymbol(symbol),
@@ -62,7 +62,7 @@ TextCommand::TextCommand(const unsigned int id,
}
#endif
-TextCommand::TextCommand(const unsigned int id,
+TextCommand::TextCommand(const int id,
const std::string &symbol,
const std::string &command,
const std::string &comment,
@@ -75,7 +75,7 @@ TextCommand::TextCommand(const unsigned int id,
mIcon(icon),
mId(id),
#ifdef TMWA_SUPPORT
- mMana(0),
+ mMana(0U),
mSchool(MagicSchool::SkillMagic),
mBaseLvl(0),
mSchoolLvl(0),
@@ -86,7 +86,7 @@ TextCommand::TextCommand(const unsigned int id,
loadImage();
}
-TextCommand::TextCommand(const unsigned int id) :
+TextCommand::TextCommand(const int id) :
mCommand(""),
mComment(""),
mSymbol(""),
@@ -94,7 +94,7 @@ TextCommand::TextCommand(const unsigned int id) :
mIcon(""),
mId(id),
#ifdef TMWA_SUPPORT
- mMana(0),
+ mMana(0U),
mSchool(MagicSchool::SkillMagic),
mBaseLvl(0),
mSchoolLvl(0),