From 519e1252cb6132b2521c6159485778d946195993 Mon Sep 17 00:00:00 2001
From: Evan Debenham <Evan.SHPX@gmail.com>
Date: Sat, 7 Nov 2015 19:23:20 -0500
Subject: [PATCH] v0.3.2b: fixed some bugs with groups and changed level
 visuals

---
 .../shatteredpixeldungeon/levels/Level.java               | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java
index 5e5dadcec..942f59e9f 100644
--- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java
+++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java
@@ -163,7 +163,7 @@ public abstract class Level implements Bundlable {
 	
 	protected ArrayList<Item> itemsToSpawn = new ArrayList<>();
 
-	protected Group visuals = new Group();
+	protected Group visuals;
 	
 	public int color1 = 0x004400;
 	public int color2 = 0x88CC44;
@@ -488,7 +488,11 @@ public abstract class Level implements Bundlable {
 	}
 
 	public Group addVisuals() {
-		visuals.clear();
+		if (visuals == null || visuals.parent == null){
+			visuals = new Group();
+		} else {
+			visuals.clear();
+		}
 		for (int i=0; i < LENGTH; i++) {
 			if (pit[i]) {
 				visuals.add( new WindParticle.Wind( i ) );