Skip to content

Commit

Permalink
Merge pull request #1559 from mouzedrift/grenade-crash-fix
Browse files Browse the repository at this point in the history
fix nullptr bug in Stop_slig_sounds
  • Loading branch information
mouzedrift authored Sep 1, 2022
2 parents e1238a7 + 18eb674 commit 775d997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/AliveLibAE/AmbientSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ EXPORT void CC Stop_slig_sounds_4CBA70(CameraPos direction, s8 kZero)
if (pTable->mArray[kZero].field_8_pScopedSeq)
{
pTable->mArray[kZero].field_8_pScopedSeq->VDestructor(1);
pTable->mArray[kZero].field_8_pScopedSeq = nullptr;
}
}

Expand Down
1 change: 1 addition & 0 deletions Source/AliveLibAO/AmbientSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ EXPORT void CC Stop_slig_sounds_476A20(CameraPos direction, s8 kZero)
if (pTable->mArray[kZero].field_8_pScopedSeq)
{
pTable->mArray[kZero].field_8_pScopedSeq->VDestructor(1);
pTable->mArray[kZero].field_8_pScopedSeq = nullptr;
}
}

Expand Down

0 comments on commit 775d997

Please sign in to comment.