mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Merge pull request #294 from DarkflameUniverse/fix-loot-crash
This commit is contained in:
commit
0afba0d1d3
@ -137,6 +137,10 @@ std::unordered_map<LOT, int32_t> LootGenerator::RollLootMatrix(Entity* player, u
|
|||||||
|
|
||||||
std::unordered_map<LOT, int32_t> drops;
|
std::unordered_map<LOT, int32_t> drops;
|
||||||
|
|
||||||
|
if (missionComponent == nullptr) {
|
||||||
|
return drops;
|
||||||
|
}
|
||||||
|
|
||||||
const LootMatrix& matrix = m_LootMatrices[matrixIndex];
|
const LootMatrix& matrix = m_LootMatrices[matrixIndex];
|
||||||
|
|
||||||
for (const LootMatrixEntry& entry : matrix) {
|
for (const LootMatrixEntry& entry : matrix) {
|
||||||
|
Loading…
Reference in New Issue
Block a user