mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-15 04:02:50 -04:00
Fix some UBs (#544)
Co-authored-by: MelonSpeedruns <melonspeedruns@stratobox.net>
This commit is contained in:
@@ -5877,6 +5877,11 @@ void daAlink_c::setItemMatrix(int param_0) {
|
||||
modelCalc(mSheathModel);
|
||||
|
||||
int var_r26;
|
||||
|
||||
#if AVOID_UB
|
||||
var_r26 = 0;
|
||||
#endif
|
||||
|
||||
if (!checkNoResetFlg3(FLG3_UNK_4000000)) {
|
||||
if (mEquipItem == 0x103 || param_0 != 0) {
|
||||
mSwordModel->setBaseTRMtx(mpLinkModel->getAnmMtx(mLeftItemJntNo));
|
||||
|
||||
Reference in New Issue
Block a user