Ped: WeaponInfo: little fixes and renamings

This commit is contained in:
erorcun
2020-12-28 03:25:26 +03:00
parent 2dbe3d5b83
commit d3f2f4f6ac
3 changed files with 8 additions and 9 deletions

View File

@ -164,10 +164,9 @@ CWeaponInfo::LoadWeaponData(void)
line[linelen] = '\0';
// skip white space
for (lp = 0; line[lp] <= ' '; lp++);
for (lp = 0; line[lp] <= ' ' && line[lp] != '\0'; lp++);
if (lp >= linelen || // FIX: game uses == here, but this is safer if we have empty lines
line[lp] == '#')
if (line[lp] == '\0' || line[lp] == '#')
continue;
spread = 0.0f;