let mysql be happy with a NULL heighmap ( yeap i made several )
parent
1c752296bf
commit
50d73873db
|
@ -670,8 +670,11 @@ namespace OpenSim.Data.MySQL
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
{
|
{
|
||||||
int rev = Convert.ToInt32(reader["Revision"]);
|
int rev = Convert.ToInt32(reader["Revision"]);
|
||||||
byte[] blob = (byte[])reader["Heightfield"];
|
if ((reader["Heightfield"] != DBNull.Value))
|
||||||
terrData = TerrainData.CreateFromDatabaseBlobFactory(pSizeX, pSizeY, pSizeZ, rev, blob);
|
{
|
||||||
|
byte[] blob = (byte[])reader["Heightfield"];
|
||||||
|
terrData = TerrainData.CreateFromDatabaseBlobFactory(pSizeX, pSizeY, pSizeZ, rev, blob);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue