summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-10-11 22:51:02 +0000
committerFedja Beader <fedja@protonmail.ch>2024-10-11 22:51:02 +0000
commit089532258084660366fdeb11ec5d25b115fe6b0e (patch)
tree6711cd31f953c895cd7b8645b30d3b25b107f1e6 /src
parenta00f1fee3da1fd3e2bb10b73dbf4589e143b570e (diff)
downloadplus-089532258084660366fdeb11ec5d25b115fe6b0e.tar.gz
plus-089532258084660366fdeb11ec5d25b115fe6b0e.tar.bz2
plus-089532258084660366fdeb11ec5d25b115fe6b0e.tar.xz
plus-089532258084660366fdeb11ec5d25b115fe6b0e.zip
Remove redundant nullptr check
Curiously, this increases -g -O2 exe size by 96 bytes, but disassembly dump around this code is the same (redundant check was already optimised out?) **** mana/plus!106
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp
index 3773df55f..de7944a44 100644
--- a/src/gui/widgets/tabs/chat/chattab.cpp
+++ b/src/gui/widgets/tabs/chat/chattab.cpp
@@ -232,7 +232,7 @@ void ChatTab::chatLog(std::string line,
// if configured, move magic messages log to debug chat tab
if (Net::getNetworkType() == ServerType::TMWATHENA
- && (localChatTab != nullptr) && this == localChatTab
+ && this == localChatTab
&& ((config.getBoolValue("showMagicInDebug")
&& own == ChatMsgType::BY_PLAYER
&& tmp.text.length() > 1