Skip to content

Commit 3ebefc3

Browse files
authored
Fix Changing the "voiceptt" bind won't change it's "up" pressed state bind (#3644)
Fix binds
1 parent d4f8849 commit 3ebefc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/core/CKeyBinds.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,8 @@ CCommandBind* CKeyBinds::FindCommandMatch(const char* szKey, const char* szComma
841841
NullEmptyStrings(szKey, szArguments, szResource, szOriginalScriptKey);
842842

843843
std::string arguments = szArguments ? szArguments : "";
844-
szArguments = SharedUtil::Trim(arguments.data());
844+
if (!arguments.empty())
845+
szArguments = SharedUtil::Trim(arguments.data());
845846

846847
for (KeyBindPtr& bind : m_binds)
847848
{

0 commit comments

Comments
 (0)