fehlende message- type/rendered attribute im CR

This commit is contained in:
Enno Rehling 2005-06-19 09:32:53 +00:00
parent 1169a0612d
commit 33ae3283ee
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ render_messages(FILE * F, faction * f, message_list *msgs)
#if RENDER_CRMESSAGES #if RENDER_CRMESSAGES
char nrbuffer[1024*32]; char nrbuffer[1024*32];
nrbuffer[0] = '\0'; nrbuffer[0] = '\0';
if (nr_render(m->msg, f->locale, nrbuffer, sizeof(nrbuffer), f)==0 && nrbuffer[0]) { if (nr_render(m->msg, f->locale, nrbuffer, sizeof(nrbuffer), f)>0 && nrbuffer[0]) {
fprintf(F, "MESSAGE %u\n", (unsigned int)m->msg);/*++msgno); */ fprintf(F, "MESSAGE %u\n", (unsigned int)m->msg);/*++msgno); */
fprintf(F, "%d;type\n", hash); fprintf(F, "%d;type\n", hash);
fwritestr(F, nrbuffer); fwritestr(F, nrbuffer);