From abd99571984d0b8ac43671565d6955fea5238cbe Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 20 Mar 2012 12:24:42 +0100 Subject: Fix an invalid cast that only showed at runtime --- OpenSim/Data/MySQL/MySQLSimulationData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 3b53478..33c184f 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs @@ -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"]; -- cgit v1.1