mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 06:43:01 +05:00
SA: Fix a missing null check in CTaskComplexSequence::Contains
This commit is contained in:
parent
47e7ab6b1f
commit
16c7a859d8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Reference in a new issue