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:
Andrzej Kapolka
2006-08-29 20:44:32 +00:00
parent 164e646a16
commit 8eaf39b4f5
@@ -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;
}
}
}