diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLAssetData.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index 23077f1..d4a7980 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs | |||
@@ -142,7 +142,14 @@ namespace OpenSim.Data.MySQL | |||
142 | asset.Data = (byte[]) dbReader["data"]; | 142 | asset.Data = (byte[]) dbReader["data"]; |
143 | asset.Description = (string) dbReader["description"]; | 143 | asset.Description = (string) dbReader["description"]; |
144 | asset.FullID = assetID; | 144 | asset.FullID = assetID; |
145 | asset.Local = (bool)dbReader["local"]; | 145 | try |
146 | { | ||
147 | asset.Local = (bool)dbReader["local"]; | ||
148 | } | ||
149 | catch (System.InvalidCastException) | ||
150 | { | ||
151 | asset.Local = false; | ||
152 | } | ||
146 | asset.Name = (string) dbReader["name"]; | 153 | asset.Name = (string) dbReader["name"]; |
147 | asset.Type = (sbyte) dbReader["assetType"]; | 154 | asset.Type = (sbyte) dbReader["assetType"]; |
148 | } | 155 | } |