diff options
Diffstat (limited to 'saga/text_mod.h')
-rw-r--r-- | saga/text_mod.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/saga/text_mod.h b/saga/text_mod.h index b136a3b34a..27893fda12 100644 --- a/saga/text_mod.h +++ b/saga/text_mod.h @@ -37,7 +37,7 @@ enum R_TEXT_FLAGS { TEXT_TIMEOUT = 0x01 }; -typedef struct R_TEXTLIST_ENTRY_tag { +struct R_TEXTLIST_ENTRY { struct R_TEXTLIST_ENTRY_tag *next; struct R_TEXTLIST_ENTRY_tag *prev; int display; @@ -49,8 +49,10 @@ typedef struct R_TEXTLIST_ENTRY_tag { int flags; int font_id; long time; - char *string; -} R_TEXTLIST_ENTRY; + const char *string; + + R_TEXTLIST_ENTRY() { memset(this, 0, sizeof(*this)); } +}; typedef struct R_TEXTLIST_tag R_TEXTLIST; |