Fix für Santa, wenn region 0,0 nicht existiert :-)

This commit is contained in:
Enno Rehling 2002-12-23 10:26:45 +00:00
parent 8cde4d6104
commit 1f9a8a03dc
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,9 @@ int
xmas2002(void)
{
region * r = findregion(0, 0);
unit * santa = make_santa(r);
unit * santa;
if (r==NULL) r = regions;
santa = make_santa(r);
santa_comes_to_town(r, santa, presents);
return 0;

View File

@ -328,7 +328,7 @@ read_newfactions(const char * filename)
if (fscanf(F, "%s %s %s %d %d %s", email, race, lang, &bonus, &subscription, password)<=0) break;
#endif
while (f) {
if (strcmp(f->email, email)==0 && f->age==0) {
if (strcmp(f->email, email)==0 && f->subscription) {
break;
}
f = f->next;