mantis 8349: fix landmasks

0.9.1.0-post-fixes
UbitUmarov 2018-08-07 20:38:58 +01:00
parent 390cb703f3
commit 88d638a0cf
1 changed files with 1 additions and 1 deletions

View File

@ -1460,7 +1460,7 @@ namespace OpenSim.Region.CoreModules.World.Land
for (int i = 0; i < bitmapLen; i++) for (int i = 0; i < bitmapLen; i++)
{ {
tempByte = LandData.Bitmap[i]; tempByte = LandData.Bitmap[i];
for (int bitmask = 0x80; bitmask > 0; bitmask = bitmask >> 1) for (int bitmask = 0x01; bitmask < 0x100; bitmask = bitmask << 1)
{ {
bool bit = (tempByte & bitmask) == bitmask; bool bit = (tempByte & bitmask) == bitmask;
try try