From 2492b561385859b7ef76fe816a8dc845f0b9bd09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 01:53:51 +0300 Subject: Fix some casts between signed and unsigned in some files. --- src/textcommand.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/textcommand.cpp') 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), -- cgit v1.2.3-70-g09d2