Astraltor-Bug: findspecialdirection("") liefert die erstbeste.

This commit is contained in:
Enno Rehling 2003-03-15 03:00:54 +00:00
parent 5441963633
commit 7a5b8e7bd4
1 changed files with 1 additions and 0 deletions

View File

@ -2804,6 +2804,7 @@ findspecialdirection(const region *r, char *token)
attrib *a; attrib *a;
spec_direction *d; spec_direction *d;
if (strlen(token)==0) return NULL;
for (a = a_find(r->attribs, &at_direction);a;a=a->nexttype) { for (a = a_find(r->attribs, &at_direction);a;a=a->nexttype) {
d = (spec_direction *)(a->data.v); d = (spec_direction *)(a->data.v);