- another fix in terrain deserialization for old files

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-11-20 20:35:45 +00:00
parent 8b60ba35b2
commit 1e100399f1

View File

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