mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-02 17:43:41 -04:00
[Client] Don't crash when receiving certain packets from NULL players
This commit is contained in:
parent
2e45203bbb
commit
6918ae7bc7
@ -20,8 +20,10 @@ namespace mwmp
|
|||||||
{
|
{
|
||||||
// Entire faction membership cannot currently be requested from players
|
// Entire faction membership cannot currently be requested from players
|
||||||
}
|
}
|
||||||
else
|
else if (player != 0)
|
||||||
|
{
|
||||||
static_cast<LocalPlayer*>(player)->setFactions();
|
static_cast<LocalPlayer*>(player)->setFactions();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,10 @@ namespace mwmp
|
|||||||
{
|
{
|
||||||
// Entire journal cannot currently be requested from players
|
// Entire journal cannot currently be requested from players
|
||||||
}
|
}
|
||||||
else
|
else if (player != 0)
|
||||||
|
{
|
||||||
static_cast<LocalPlayer*>(player)->addJournalItems();
|
static_cast<LocalPlayer*>(player)->addJournalItems();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,10 @@ namespace mwmp
|
|||||||
{
|
{
|
||||||
// Entire list of topics cannot currently be requested from players
|
// Entire list of topics cannot currently be requested from players
|
||||||
}
|
}
|
||||||
else
|
else if (player != 0)
|
||||||
|
{
|
||||||
static_cast<LocalPlayer*>(player)->addTopics();
|
static_cast<LocalPlayer*>(player)->addTopics();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user