- fix possible crash in conc (but it's still an ugly hack)
- fix noob usage of strcmp
- flag some memory leaks (it would be nice, if the author(s) would clean
   up the mess himself)
- fix crash in substr
- whitespace cleanup

there are plenty more memory leaks in command.cpp - for example, every
goto in cubescript does not clean up anything
This commit is contained in:
ac-stef
2014-05-14 22:54:37 +02:00
parent 5058172a06
commit eb60302e67
57 changed files with 246 additions and 254 deletions
+4 -4
View File
@@ -263,16 +263,16 @@ void loadcrosshair(char *c, char *name)
}
return;
}
int n = -1;
for (int i = 0; i < CROSSHAIR_NUM; i++)
{
if(strcmp(crosshairnames[i], name) == 0) { n = i; break; }
}
if (n < 0 || n >= CROSSHAIR_NUM) return;
crosshairs[n] = loadcrosshairtexture(c);
}