* LightProfile_Struct::TypeToLevel. The case statement for lightLevelCandle should be lightTypeCandle as the check is on light types, not light levels. Light levels are used for the return value.

This commit is contained in:
Tim DeLong 2016-01-11 09:11:38 -05:00
parent 6fc5f8fba2
commit 1711b06836

View File

@ -2416,7 +2416,7 @@ uint8 LightProfile_Struct::TypeToLevel(uint8 lightType)
return lightLevelSmallMagic; // 3 return lightLevelSmallMagic; // 3
case lightTypeTorch: case lightTypeTorch:
return lightLevelTorch; // 2 return lightLevelTorch; // 2
case lightLevelCandle: case lightTypeCandle:
return lightLevelCandle; // 1 return lightLevelCandle; // 1
default: default:
return lightLevelUnlit; // 0 return lightLevelUnlit; // 0