diff --git a/zscript/uthud.zsc b/zscript/uthud.zsc index abd5985..6f80dc4 100644 --- a/zscript/uthud.zsc +++ b/zscript/uthud.zsc @@ -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++ ) {