v0.9.0: added safety checks to prevent a few rare crashes
This commit is contained in:
@@ -93,7 +93,7 @@ public class Camera extends Gizmo {
|
||||
int length = all.size();
|
||||
for (int i=0; i < length; i++) {
|
||||
Camera c = all.get( i );
|
||||
if (c.exists && c.active) {
|
||||
if (c != null && c.exists && c.active) {
|
||||
c.update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user