avoiding annoyng messages

This commit is contained in:
Luis Fernando Molina committed 2019-11-22 19:50:13 +01:00
1 parent 670827f651
commit 65f1de7041
1 file changed
+1 -1
+1 -1
View File
@@ -186,7 +186,7 @@ function newFloatingObject () {
function frozenPhysics () {
if (thisObject.frozenManually === false) {
let parent = thisObject.payload.chainParent
if (parent !== undefined) {
if (parent !== undefined && parent.payload !== undefined) {
thisObject.isFrozen = parent.payload.floatingObject.isFrozen
}
}