- another fix in terrain deserialization for old files

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 8b60ba35b2
commit 1e100399f1
  1. 3
      engine/src/terrain/com/jme3/terrain/GeoMap.java

@ -355,7 +355,8 @@ public class GeoMap implements Savable {
if (hdata == null) {
FloatBuffer buf = ic.readFloatBuffer("hdata", null);
if (buf != null) {
hdata = buf.array();
hdata = new float[buf.limit()];
buf.get(hdata);
}
}
width = ic.readInt("width", 0);

Loading…
Cancel
Save