Fixed crash when replacing first character.
This commit is contained in:
1 parent
ccc6f71980
commit
0bb24a392e
1 file changed
+3
@@ -856,6 +856,9 @@ static inline boolean HU_keyInChatString(char *s, char ch)
|
||||
{
|
||||
if (s[m])
|
||||
s[m+1] = (s[m]);
|
||||
|
||||
if (m < 1)
|
||||
break; // fix the chat going ham if your replace the first character. (For whatever reason this didn't happen in vanilla????)
|
||||
}
|
||||
s[c_input] = ch; // and replace this.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user