Fix NPE in NMSRelighter

This commit is contained in:
Jesse Boyd 2016-09-25 05:43:42 +10:00
parent 479c6c5172
commit 861b10403d

View File

@ -33,8 +33,10 @@ public class NMSRelighter {
RelightSkyEntry existing = skyToRelight.get(pair);
if (existing != null) {
existing.bitmask |= bitmask;
for (int i = 0; i < fix.length; i++) {
existing.fix[i] |= fix[i];
if (fix != null) {
for (int i = 0; i < fix.length; i++) {
existing.fix[i] |= fix[i];
}
}
return false;
}