Compare commits

...

2 commits

Author SHA1 Message Date
Echo J.
f71b2fe828
Merge 8871042371 into 16c7a859d8 2024-11-15 12:34:21 +01:00
Silent
16c7a859d8
SA: Fix a missing null check in CTaskComplexSequence::Contains 2024-11-15 12:25:18 +01:00
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 />