Allow parsing of hexadecimal int constants from strings.
Also fixes a DBNull value in the touch type field crashing the sim
This commit is contained in:
Melanie Thielker
2008-09-10 06:14:38 +00:00
parent b9b996be38
commit a68e34b558
2 changed files with 10 additions and 5 deletions

View File

@@ -1226,7 +1226,8 @@ namespace OpenSim.Data.MySQL
prim.SalePrice = Convert.ToInt32(row["SalePrice"]);
prim.ObjectSaleType = Convert.ToByte(row["SaleType"]);
prim.ClickAction = Convert.ToByte(row["ClickAction"]);
if (!row.IsNull("ClickAction"))
prim.ClickAction = Convert.ToByte(row["ClickAction"]);
return prim;
}