mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[12128] Fix more warnings - close #4
* Remove warning: enumeration value '<value>' not handled in switch * Remove warning: enumeral and non-enumeral type in conditional expression * Remove warning: too many arguments for format Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
1707edbcfd
commit
6e76dbae3f
16 changed files with 43 additions and 16 deletions
|
|
@ -73,7 +73,7 @@ namespace MaNGOS
|
|||
data << ObjectGuid(targetGuid);
|
||||
data << uint32(strlen(text) + 1);
|
||||
data << text;
|
||||
data << uint8(i_source ? i_source->GetChatTag() : CHAT_TAG_NONE);
|
||||
data << uint8(i_source ? i_source->GetChatTag() : uint8(CHAT_TAG_NONE));
|
||||
}
|
||||
|
||||
ChatMsg i_msgtype;
|
||||
|
|
@ -152,7 +152,7 @@ namespace MaNGOS
|
|||
data << ObjectGuid(targetGuid);
|
||||
data << uint32(strlen(str) + 1);
|
||||
data << str;
|
||||
data << uint8(i_source ? i_source->GetChatTag() : CHAT_TAG_NONE);
|
||||
data << uint8(i_source ? i_source->GetChatTag() : uint8(CHAT_TAG_NONE));
|
||||
}
|
||||
private:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue