Code:
void send_to_outdoor(const char *messg, ...)
{
struct descriptor_data *i;
+ va_list args;
if (!messg || !*messg)
return;
for (i = descriptor_list; i; i = i->next) {
- va_list args;
if (STATE(i) != CON_PLAYING || i->character == NULL)
continue;
if (!AWAKE(i->character) || !OUTSIDE(i->character))
continue;
va_start(args, messg);
vwrite_to_output(i, messg, args);
va_end(args);
}
}