Fix crash on dice pickup with low frame rates

This commit is contained in:
Mitchell McCaffrey 2021-07-06 08:20:01 +10:00
parent 629a4ad7eb
commit 73f0667ca2

View File

@ -18,7 +18,11 @@ export function getDiceInstanceRoll(instance) {
highestLocator = locator;
}
}
return parseInt(highestLocator.name.slice(12));
if (highestLocator) {
return parseInt(highestLocator.name.slice(12));
} else {
return 0;
}
}
/**