diff --git a/src/tests/kits/game/chart/ChartWindow.cpp b/src/tests/kits/game/chart/ChartWindow.cpp index bd08da2cf0..7e00e10db4 100644 --- a/src/tests/kits/game/chart/ChartWindow.cpp +++ b/src/tests/kits/game/chart/ChartWindow.cpp @@ -2106,9 +2106,9 @@ ChartWindow::SetColorSpace(buffer *buf, color_space depth) if (swap_needed) { col = buf->colors[0]; for (i = 0; i < 7*8; i++) { - B_SWAP_INT32(col[i]); + col[i] = B_SWAP_INT32(col[i]); } - B_SWAP_INT32(buf->back_color); + buf->back_color = B_SWAP_INT32(buf->back_color); } }