SA: Fix a missing null check in CTaskComplexSequence::Contains

This commit is contained in:
Silent 2024-11-15 12:25:18 +01:00
parent 47e7ab6b1f
commit 16c7a859d8
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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 />