Fix crash on dice pickup with low frame rates
This commit is contained in:
parent
629a4ad7eb
commit
73f0667ca2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user