Project

General

Profile

Bug #305 ยป 0025-Fix-activity2char-assert-failure.patch

Marko Lindqvist, 03/13/2024 02:50 AM

View differences:

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;
}
}
}
    (1-1/1)