Fix deprecation warning about /Zc:forScope-

Fixed out-of-scope variables usage.
This commit is contained in:
Azamat H. Hackimov
2024-06-29 12:28:14 +03:00
parent 6ec444d9cc
commit 6f70379476
17 changed files with 144 additions and 116 deletions

View File

@@ -696,7 +696,7 @@ int CObjectDialog::GetFreePlayerIndex() {
}
}
for (i = 0; i < MAX_NET_PLAYERS; i++) {
for (int i = 0; i < MAX_NET_PLAYERS; i++) {
if (slots[i] == 0) {
mprintf(0, "Making new ship with id of %d...\n", i);
return i;