From 5314f397b290d5f023bca8f3c2e50c22a66fb281 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 18 Feb 2008 15:25:47 +0000 Subject: Attempt to fix casting issue introduced by RegionSize constant. I think this should actually all be uints, but this will hopefully let people log in again. --- OpenSim/Region/Environment/LandManagement/LandManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index f5e2a3e..af86c73 100644 --- a/OpenSim/Region/Environment/LandManagement/LandManager.cs +++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs @@ -281,7 +281,7 @@ namespace OpenSim.Region.Environment.LandManagement public Land getLandObject(int x, int y) { - if (x >= Constants.RegionSize || y >= Constants.RegionSize || x < 0 || y < 0) + if (x >= (int)Constants.RegionSize || y >= (int)Constants.RegionSize || x < 0 || y < 0) { // These exceptions here will cause a lot of complaints from the users specifically because // they happen every time at border crossings -- cgit v1.1