mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-11 16:37:02 +00:00
nn_boss: Check for nullptr
Fixes a crash in Super Smash Bros.
This commit is contained in:
parent
47b8d911b9
commit
5520613dc3
1 changed files with 2 additions and 0 deletions
|
|
@ -902,6 +902,8 @@ namespace iosu::boss
|
||||||
// handling automatic scheduling and task state transitions is quite complex
|
// handling automatic scheduling and task state transitions is quite complex
|
||||||
// for now we only run the task once
|
// for now we only run the task once
|
||||||
std::shared_ptr<RegisteredTask> registeredTask = GetRegisteredTask2(persistentId, taskId);
|
std::shared_ptr<RegisteredTask> registeredTask = GetRegisteredTask2(persistentId, taskId);
|
||||||
|
if(!registeredTask)
|
||||||
|
return;
|
||||||
TaskState state = registeredTask->GetState();
|
TaskState state = registeredTask->GetState();
|
||||||
if (state == TaskState::Stopped || state == TaskState::Initial)
|
if (state == TaskState::Stopped || state == TaskState::Initial)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue