From a52ce7a9275955a2d3ddae181025bcf603aefe8d Mon Sep 17 00:00:00 2001
From: jsalmon3 <>
Date: Fri, 17 Oct 2003 15:17:11 +0000
Subject: [PATCH] Fixed player color bug

---
 src/editor/editloop.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp
index 76d58f173..f2a6bd57f 100644
--- a/src/editor/editloop.cpp
+++ b/src/editor/editloop.cpp
@@ -512,7 +512,7 @@ local void DrawUnitIcons(void)
 	    y += 20;
 	}
 	if (i == CursorPlayer && TheMap.Info->PlayerType[i] != PlayerNobody) {
-	    VideoDrawRectangle(ColorWhite,x + i % 8 * 20, y, 20, 20);
+	    VideoDrawRectangle(ColorWhite, x + i % 8 * 20, y, 20, 20);
 	}
 	VideoDrawRectangle(
 	    i == CursorPlayer && TheMap.Info->PlayerType[i] != PlayerNobody ?
@@ -1831,6 +1831,7 @@ local void CreateEditor(void)
 	//
 	TheMap.Info->MapTerrainName =
 	    strdup(Tilesets[TheMap.Info->MapTerrain]->Ident);
+	InitPlayers();
 	for (i = 0; i < PlayerMax; ++i) {
 	    if (i == PlayerNumNeutral) {
 		CreatePlayer(PlayerNeutral);