- 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:
parent
8b60ba35b2
commit
1e100399f1
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user