[Freeciv-Dev] (PR#13489) bug in old_impr_type_id (savegame compatibility
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13489 >
static int old_impr_type_id(Impr_Type_id type)
{
int i;
for (i = 0; i < ARRAY_SIZE(old_impr_types); i++) {
if (mystrcasecmp(unit_name_orig(type), old_impr_types[i]) == 0) {
return i;
}
}
/* It's a new improvement. Savegame cannot be forward compatible so we can
* return anything */
return type;
}
...
Shouldn't this be impr_name_orig? Mateusz? This affects 2.0 and the
dev branch.
-jason
- [Freeciv-Dev] (PR#13489) bug in old_impr_type_id (savegame compatibility code for 2.0),
Jason Short <=
|
|