diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-10-11 22:51:02 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-10-11 22:51:02 +0000 |
commit | 089532258084660366fdeb11ec5d25b115fe6b0e (patch) | |
tree | 6711cd31f953c895cd7b8645b30d3b25b107f1e6 /src | |
parent | a00f1fee3da1fd3e2bb10b73dbf4589e143b570e (diff) | |
download | mv-089532258084660366fdeb11ec5d25b115fe6b0e.tar.gz mv-089532258084660366fdeb11ec5d25b115fe6b0e.tar.bz2 mv-089532258084660366fdeb11ec5d25b115fe6b0e.tar.xz mv-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.cpp | 2 |
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 |