@@ -270,13 +270,13 @@ static void TownViewWndProc(Window *w, W
DeleteTown(t);
break;
}
case WE_ON_EDIT_TEXT: {
byte *b = e->edittext.str;
const char *b = e->edittext.str;
if (*b == 0)
return;
memcpy(_decode_parameters, b, 32);
DoCommandP(0, w->window_number, 0, NULL, CMD_RENAME_TOWN | CMD_MSG(STR_2008_CAN_T_RENAME_TOWN));
} break;