1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 02:51:27 +00:00

Update4 for MSVC10

Fix for loop scope problems.
This commit is contained in:
Skoader
2012-04-22 13:15:34 +10:00
parent f8c3f7ac31
commit 7a501c1b1f
2 changed files with 8 additions and 4 deletions

View File

@ -1241,7 +1241,8 @@ static ENetError FixupPlayerName (wchar * name) {
// Trim leading and trailing whitespace and convert
// multiple internal spaces into only one space
unsigned nonSpaceChars = 0;
for (wchar *src = name, *dst = name; *src; ) {
wchar *dst = name;
for (wchar *src = name; *src; ) {
// Skip whitespace
while (*src && ICharIsSpace(*src))
src++;