src/widget.cpp
changeset 10207 c291a21b304e
parent 9892 8dc6b933e669
child 10208 72c00af5c95d
--- a/src/widget.cpp	Tue Sep 30 17:50:21 2008 +0000
+++ b/src/widget.cpp	Tue Sep 30 20:39:50 2008 +0000
@@ -476,7 +476,7 @@
 			DrawFrameRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, wi->color, (this->caption_color == 0xFF) ? FR_LOWERED | FR_DARKENED : FR_LOWERED | FR_DARKENED | FR_BORDERONLY);
 
 			if (this->caption_color != 0xFF) {
-				GfxFillRect(r.left + 2, r.top + 2, r.right - 2, r.bottom - 2, _colour_gradient[_player_colors[this->caption_color]][4]);
+				GfxFillRect(r.left + 2, r.top + 2, r.right - 2, r.bottom - 2, _colour_gradient[_company_colours[this->caption_color]][4]);
 			}
 
 			DrawStringCenteredTruncated(r.left + 2, r.right - 2, r.top + 2, wi->data, TC_FROMSTRING);