Should not be putting empty maps into the collection with id 0.

This commit is contained in:
2023-09-11 12:35:58 -04:00
parent 7337f4be1e
commit c548383a4c
@@ -149,8 +149,6 @@ public class HeightMap {
} }
} }
HeightMap.heightmapByLoadNum.put(this.zoneLoadID, this);
} }
public HeightMap(Zone zone) { public HeightMap(Zone zone) {
@@ -169,7 +167,6 @@ public class HeightMap {
this.fullExtentsX = halfExtentsX * 2; this.fullExtentsX = halfExtentsX * 2;
this.fullExtentsY = halfExtentsY * 2; this.fullExtentsY = halfExtentsY * 2;
// We needed to flip the image as OpenGL and Shadowbane both use the bottom left corner as origin. // We needed to flip the image as OpenGL and Shadowbane both use the bottom left corner as origin.
this.heightmapImage = null; this.heightmapImage = null;
@@ -187,8 +184,6 @@ public class HeightMap {
} }
} }
HeightMap.heightmapByLoadNum.put(this.zoneLoadID, this);
} }
public static void GeneratePlayerCityHeightMap() { public static void GeneratePlayerCityHeightMap() {