mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
more warning fixes
This commit is contained in:
@@ -1851,7 +1851,7 @@ void ChatInterface::OnReceiveForcedLogout(const ChatAvatar *oldAvatar)
|
||||
ChatServer::fileLog(false, "ChatInterface", "OnReceiveForcedLogout() oldAvatar(%s)", ChatServer::getFullChatAvatarName(oldAvatar).c_str());
|
||||
|
||||
PROFILER_AUTO_BLOCK_DEFINE("ChatInterface - OnReceiveForcedLogout");
|
||||
if ((oldAvatar == NULL))
|
||||
if (oldAvatar == NULL)
|
||||
{
|
||||
DEBUG_WARNING(true, ("We received an OnReceiveForcedLogout with a success result code but NULL data. This is an error that the API should never give."));
|
||||
return;
|
||||
@@ -2877,7 +2877,7 @@ void ChatInterface::OnReceivePersistentMessage(const ChatAvatar *destAvatar, con
|
||||
ChatServer::fileLog(false, "ChatInterface", "OnReceivePersistentMessage() destAvatar(%s)", ChatServer::getFullChatAvatarName(destAvatar).c_str());
|
||||
|
||||
PROFILER_AUTO_BLOCK_DEFINE("ChatInterface - OnReceivePersistentMessage");
|
||||
if ((destAvatar == NULL))
|
||||
if (destAvatar == NULL)
|
||||
{
|
||||
DEBUG_WARNING(true, ("We received an OnREceivePersistentMessage with a success result code but NULL data. This is an error that the API should never give."));
|
||||
return;
|
||||
|
||||
@@ -200,7 +200,7 @@ void NebulaManager::loadSceneData(std::string const & sceneId)
|
||||
{
|
||||
//-- apparently not a space scene
|
||||
// @todo: need better way to detect this
|
||||
if (!strncmp(sceneId.c_str(), "space_", 6) != 0)
|
||||
if (!(strncmp(sceneId.c_str(), "space_", 6) != 0))
|
||||
WARNING(true, ("NebulaManager no such datatable [%s]", filename.c_str()));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user