diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-05-29 21:12:50 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-12-08 23:43:19 +0100 |
| commit | 97249ff7b4c70be76e9cf4a889b027ed9354071f (patch) | |
| tree | 452b1165645927bff14642ac95a0aa16934b8ee3 /src/server/scripts | |
| parent | 3796978a8f257c83cfc7d7b9351ff767def54244 (diff) | |
Core/Channel: Fix CRT Debug Assert triggered with invalid channel names
(cherry picked from commit f0bd90cc35098475b20e736cf98885c99c04be3d)
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 804d6736455..4b4de0fa107 100644 --- a/src/server/scripts/Commands/cs_modify.cpp +++ b/src/server/scripts/Commands/cs_modify.cpp @@ -702,7 +702,7 @@ public: amount = atoi(rankTxt); // try to find rank by name - 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; |
