Skip to content

Commit 0757b59

Browse files
committed
Fix index bug
1 parent 6be6281 commit 0757b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C7/PCXToGodot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static (Image, Image) ByteArrayWithTintToImage(byte[] colorIndices, byte[
160160
bool tinted = index < 16 || (index < 64 && index % 2 == 0);
161161
bool shadow = index >= SHADOW_START_INDEX && index <= CIVCOLOR_START_INDEX;
162162
if (tinted) {
163-
tintLayer[i] = getWhiteColorData(i);
163+
tintLayer[i] = getWhiteColorData(index);
164164
baseLayer[i] = 0; // transparent
165165
} else if (shadow) {
166166
// shadow belongs to the base texture

0 commit comments

Comments
 (0)