Fix unitialized members.

This commit is contained in:
jeefo 2020-11-23 13:11:28 +03:00
commit 97b7a90bb9
3 changed files with 167 additions and 167 deletions

View file

@ -1243,7 +1243,7 @@ int Bot::pickBestWeapon (int *vec, int count, int moneySave) {
union {
unsigned int u;
float f;
} cast;
} cast {};
cast.f = factor;
return (static_cast <int> ((cast.u >> 23) & 0xff) - 127) * 0.3010299956639812f;