diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-05-29 21:12:50 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2019-05-29 21:12:50 +0200 |
| commit | f0bd90cc35098475b20e736cf98885c99c04be3d (patch) | |
| tree | b23c5908cb5e2902163eb7538da4f646c9743efc /src/server/scripts | |
| parent | 22888f80e98dc7b96769ece590ea87166cef908e (diff) | |
Core/Channel: Fix CRT Debug Assert triggered with invalid channel names
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Commands/cs_modify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_modify.cpp b/src/server/scripts/Commands/cs_modify.cpp index 1c52b386901..8a669557f83 100644 --- a/src/server/scripts/Commands/cs_modify.cpp +++ b/src/server/scripts/Commands/cs_modify.cpp @@ -728,7 +728,7 @@ public: return false; amount = atoi(rankTxt); - if ((amount == 0) && (rankTxt[0] != '-') && !isdigit(rankTxt[0])) + if ((amount == 0) && (rankTxt[0] != '-') && !isdigit((unsigned char)rankTxt[0])) { std::string rankStr = rankTxt; std::wstring wrankStr; |
