Fix: null guard bonus check during upgradeComplete

This commit is contained in:
Dev 2023-03-25 16:35:38 +00:00
parent 32afbffcda
commit 43ad523dce

View File

@ -189,7 +189,7 @@ export class HideoutController
// Apply bonuses
const bonuses = hideoutData.stages[hideoutArea.level].bonuses;
if (bonuses.length > 0)
if (bonuses?.length > 0)
{
for (const bonus of bonuses)
{