Fix an invalid cast that only showed at runtime

avinationmerge
Melanie 2012-03-20 12:24:42 +01:00
parent 7779b1eabc
commit abd9957198
1 changed files with 1 additions and 1 deletions

View File

@ -1249,7 +1249,7 @@ namespace OpenSim.Data.MySQL
prim.KeyframeMotion = null;
}
prim.PhysicsShapeType = (byte)row["PhysicsShapeType"];
prim.PhysicsShapeType = (byte)Convert.ToInt32(row["PhysicsShapeType"].ToString());
prim.Density = (float)(double)row["Density"];
prim.GravityModifier = (float)(double)row["GravityModifier"];
prim.Friction = (float)(double)row["Friction"];