Fix for asmjit crash.

This commit is contained in:
Marisa the Magician 2018-11-15 19:49:38 +01:00
commit 65c2431ffc

View file

@ -405,6 +405,9 @@ Class UTHud : BaseStatusBar
UTDrawPlainTex(WeaponBox,hudsize*weaponsize,opacity+7);
}
Weapon wslots[10];
// zero-initialize, fixes asmjit crash
for ( int i=0; i<10; i++ )
wslots[i] = null;
// first run, populate the full array of weapons
for ( int i=0; i<10; i++ )
{