mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 22:44:05 +00:00
[Client] Don't crash when receiving certain packets from NULL players
This commit is contained in:
parent
2e45203bbb
commit
6918ae7bc7
3 changed files with 9 additions and 3 deletions
|
@ -20,9 +20,11 @@ namespace mwmp
|
|||
{
|
||||
// Entire faction membership cannot currently be requested from players
|
||||
}
|
||||
else
|
||||
else if (player != 0)
|
||||
{
|
||||
static_cast<LocalPlayer*>(player)->setFactions();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -24,9 +24,11 @@ namespace mwmp
|
|||
{
|
||||
// Entire journal cannot currently be requested from players
|
||||
}
|
||||
else
|
||||
else if (player != 0)
|
||||
{
|
||||
static_cast<LocalPlayer*>(player)->addJournalItems();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -20,9 +20,11 @@ namespace mwmp
|
|||
{
|
||||
// Entire list of topics cannot currently be requested from players
|
||||
}
|
||||
else
|
||||
else if (player != 0)
|
||||
{
|
||||
static_cast<LocalPlayer*>(player)->addTopics();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue