Fix unitialized members.
This commit is contained in:
parent
b75e1b8a23
commit
97b7a90bb9
3 changed files with 167 additions and 167 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue