From 28c808446d28841093f729abae311e2c5c826839 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 18 Feb 2008 15:34:03 +0000 Subject: a new attempt at converting to the right types --- OpenSim/Region/Environment/LandManagement/LandManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index af86c73..47201f3 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 >= (int)Constants.RegionSize || y >= (int)Constants.RegionSize || x < 0 || y < 0) + if (x >= Convert.ToInt32(Constants.RegionSize) || y >= Convert.ToInt32(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