forked from github/server
Ich bin ein Trottel... Pointerfix
This commit is contained in:
parent
039e239d35
commit
aeebd61bee
|
@ -1010,14 +1010,14 @@ get_seen_interval(region ** first, region ** last)
|
||||||
region * r = regions;
|
region * r = regions;
|
||||||
while (r!=NULL) {
|
while (r!=NULL) {
|
||||||
if (find_seen(r)!=NULL) {
|
if (find_seen(r)!=NULL) {
|
||||||
first = r;
|
*first = r;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
r = r->next;
|
r = r->next;
|
||||||
}
|
}
|
||||||
while (r!=NULL) {
|
while (r!=NULL) {
|
||||||
if (find_seen(r)!=NULL) {
|
if (find_seen(r)!=NULL) {
|
||||||
last = r;
|
*last = r;
|
||||||
}
|
}
|
||||||
r = r->next;
|
r = r->next;
|
||||||
}
|
}
|
||||||
|
@ -1034,7 +1034,7 @@ report_computer(FILE * F, faction * f, const faction_list * addresses,
|
||||||
ship *sh;
|
ship *sh;
|
||||||
unit *u;
|
unit *u;
|
||||||
const char * mailto = locale_string(f->locale, "mailto");
|
const char * mailto = locale_string(f->locale, "mailto");
|
||||||
region * first, * last;
|
region * first = NULL, * last = NULL;
|
||||||
const attrib * a;
|
const attrib * a;
|
||||||
|
|
||||||
get_seen_interval(&first, &last);
|
get_seen_interval(&first, &last);
|
||||||
|
|
Loading…
Reference in New Issue