From e10de20772d2851813436aacfd11fa151d9112b2 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 14 Jan 2009 14:53:42 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=2995 * This fixes MSSQL for user friends lookups * Thanks StrawberryFride --- OpenSim/Data/MSSQL/MSSQLUserData.cs | 4 ++-- 1 file 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 while (reader.Read()) { FriendRegionInfo fri = new FriendRegionInfo(); - fri.isOnline = (sbyte)reader["agentOnline"] != 0; - fri.regionHandle = (ulong)reader["currentHandle"]; + fri.isOnline = (byte)reader["agentOnline"] != 0; + fri.regionHandle = Convert.ToUInt64(reader["currentHandle"].ToString()); infos[uuid] = fri; } -- cgit v1.1