Skip to content

Commit

Permalink
SA: Fix a missing null check in CTaskComplexSequence::Contains
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePLMonster committed Nov 15, 2024
1 parent 47e7ab6 commit 16c7a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SilentPatchSA/PedSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool CTaskComplexSequence::Contains(int taskID) const
{
for (CTask* task : m_taskSequence)
{
if (task->GetTaskType() == taskID)
if (task != nullptr && task->GetTaskType() == taskID)
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion SilentPatchSA/versionmeta.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<SILENTPATCH_EXT>.asi</SILENTPATCH_EXT>
<SILENTPATCH_FULL_NAME>SilentPatch for San Andreas</SILENTPATCH_FULL_NAME>
<SILENTPATCH_REVISION_ID>33</SILENTPATCH_REVISION_ID>
<SILENTPATCH_BUILD_ID>1</SILENTPATCH_BUILD_ID>
<SILENTPATCH_BUILD_ID>2</SILENTPATCH_BUILD_ID>
<SILENTPATCH_COPYRIGHT>2014-2024</SILENTPATCH_COPYRIGHT>
</PropertyGroup>
<PropertyGroup />
Expand Down

0 comments on commit 16c7a85

Please sign in to comment.