ParseRest(): Typfix
match_living() kann auch -1 und -2 liefern.
Change-Id: Ifb5a7397d7825e72f44db09ed8c9d3937f8207e8
diff --git a/std/player/soul.c b/std/player/soul.c
index 4762b95..9468ef8 100644
--- a/std/player/soul.c
+++ b/std/player/soul.c
@@ -283,7 +283,7 @@
varargs private void
ParseRest(string arg, mixed extra) {
- string wer,wie,*words,quotea;
+ string wie,*words,quotea;
int num,bis;
who = for_all = adverb = 0;
if (!arg) return;
@@ -303,8 +303,12 @@
words=explode(implode(explode(arg, ","), " und"), " ");
if (!sizeof(words)) return;
- if (sizeof(words) && (words[0]=="alle" || words[0]=="allen"))
- for_all=1,wer=words[0],words=words[1..];
+ <string|int> wer;
+ if (sizeof(words) && (words[0]=="alle" || words[0]=="allen")) {
+ for_all=1;
+ wer=words[0];
+ words=words[1..];
+ }
if (!for_all) { /* noch kein Opfer */
wer=match_living(lower_case(words[0]));
if (stringp(wer)) who=present(wer, environment(ME));