--- a/economy.c Thu Oct 06 18:28:27 2005 +0000
+++ b/economy.c Fri Oct 07 07:35:15 2005 +0000
@@ -1323,7 +1323,7 @@
GoodsEntry *ge;
int t;
uint count, cap;
- byte old_player;
+ PlayerID old_player;
bool completely_empty = true;
assert(v->current_order.type == OT_LOADING);
@@ -1560,8 +1560,8 @@
cost = CalculateCompanyValue(p) >> 2;
if (flags & DC_EXEC) {
+ PlayerID* b = p->share_owners;
int i;
- byte *b = p->share_owners;
while (*b != OWNER_SPECTATOR) b++; /* share owners is guaranteed to contain at least one OWNER_SPECTATOR */
*b = _current_player;
@@ -1602,7 +1602,7 @@
cost = -(cost - (cost >> 7));
if (flags & DC_EXEC) {
- byte *b = p->share_owners;
+ PlayerID* b = p->share_owners;
while (*b != _current_player) b++; /* share owners is guaranteed to contain player */
*b = OWNER_SPECTATOR;
InvalidateWindow(WC_COMPANY, (int)p1);