diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 16:28:34 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 16:29:15 +0100 |
commit | 16bca58803c5ff76de20889bc064f22e5305b9ed (patch) | |
tree | a0d154e84071677d1bd76a07fc8e4dc771c1f5a0 /gst/info.c | |
parent | 02c89fceeb915e31b36dd4acb4218ccd913b2ce8 (diff) |
blinking cursor and fix net
Diffstat (limited to 'gst/info.c')
-rw-r--r-- | gst/info.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -899,6 +899,7 @@ void info_template_add (infos *info, info_unit *temp) { } void info_load_army(struct army_ *ar, char *filename) { + strcpy(ar->name, filename); char buf[1024*64]; char pathname[64]; sprintf(pathname, "army/%s.txt", filename); int len = info_read_file(buf, pathname, 1024*64); @@ -908,6 +909,7 @@ void info_load_army(struct army_ *ar, char *filename) { } void info_save_army(struct army_ *ar, char *filename) { + strcpy(ar->name, filename); char pathname[64]; sprintf(pathname, "army/%s.txt", filename); FILE *f = fopen(pathname, "wb"); fwrite(ar, 1, sizeof(army), f); |