Bug #305 ยป 0025-Fix-activity2char-assert-failure.patch
server/savegame/savegame3.c | ||
---|---|---|
enum unit_activity a;
|
||
for (a = 0; a < ACTIVITY_LAST_SAVEGAME3; a++) {
|
||
char achar = activity2char(a);
|
||
/* Skip ACTIVITY_LAST. The SAVEGAME3 specific values are after it. */
|
||
if (a != ACTIVITY_LAST) {
|
||
char achar = activity2char(a);
|
||
if (activity == achar) {
|
||
return a;
|
||
if (activity == achar) {
|
||
return a;
|
||
}
|
||
}
|
||
}
|
||