aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLUserData.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-14 14:53:42 +0000
committerJustin Clarke Casey2009-01-14 14:53:42 +0000
commite10de20772d2851813436aacfd11fa151d9112b2 (patch)
tree3947c5a7a206be184b6777eb2973a7dd9e724e1e /OpenSim/Data/MSSQL/MSSQLUserData.cs
parentAdded a primitive shape function for spheres (diff)
downloadopensim-SC_OLD-e10de20772d2851813436aacfd11fa151d9112b2.zip
opensim-SC_OLD-e10de20772d2851813436aacfd11fa151d9112b2.tar.gz
opensim-SC_OLD-e10de20772d2851813436aacfd11fa151d9112b2.tar.bz2
opensim-SC_OLD-e10de20772d2851813436aacfd11fa151d9112b2.tar.xz
* Apply http://opensimulator.org/mantis/view.php?id=2995
* This fixes MSSQL for user friends lookups * Thanks StrawberryFride
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLUserData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLUserData.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs
index 01a17dc..4524736 100644
--- a/OpenSim/Data/MSSQL/MSSQLUserData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs
@@ -482,8 +482,8 @@ namespace OpenSim.Data.MSSQL
482 while (reader.Read()) 482 while (reader.Read())
483 { 483 {
484 FriendRegionInfo fri = new FriendRegionInfo(); 484 FriendRegionInfo fri = new FriendRegionInfo();
485 fri.isOnline = (sbyte)reader["agentOnline"] != 0; 485 fri.isOnline = (byte)reader["agentOnline"] != 0;
486 fri.regionHandle = (ulong)reader["currentHandle"]; 486 fri.regionHandle = Convert.ToUInt64(reader["currentHandle"].ToString());
487 487
488 infos[uuid] = fri; 488 infos[uuid] = fri;
489 } 489 }