diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 5250d30483..96b91fffaf 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -382,7 +382,8 @@ namespace OpenSim.Framework public static ulong RegionGridLocToHandle(uint X, uint Y) { - ulong handle = X << 40; // shift to higher half and mult by 256) + ulong handle = X; + handle <<= 40; // shift to higher half and mult by 256) handle |= (Y << 8); // mult by 256) return handle; }