Cope with null list when attempting to remove overlays.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@41 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -199,9 +199,11 @@ public class ModelMesh extends TriMesh
|
||||
*/
|
||||
public void removeOverlay (RenderState[] overlay)
|
||||
{
|
||||
_overlays.remove(overlay);
|
||||
if (_overlays.isEmpty()) {
|
||||
_overlays = null;
|
||||
if (_overlays != null) {
|
||||
_overlays.remove(overlay);
|
||||
if (_overlays.isEmpty()) {
|
||||
_overlays = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user