Fixed crash when loading/saving via buttons
This commit is contained in:
parent
1399024438
commit
122f7f1207
|
@ -1,4 +1,4 @@
|
|||
#define VERSION "1.9"
|
||||
#define VERSION "1.9a"
|
||||
|
||||
/* variable sizes */
|
||||
#define SMALLBUFLEN 64 /* small text buffer */
|
||||
|
|
|
@ -1251,6 +1251,7 @@ int main (int argc, char **argv) {
|
|||
starty = ((screen->h - STATUSH)/2)-2;
|
||||
bg = NULL;
|
||||
strcpy(text, currentfilename);
|
||||
textpos = &text[strlen(text)];
|
||||
changestate(S_SAVING);
|
||||
drawmap(TRUE);
|
||||
break;
|
||||
|
@ -1259,6 +1260,7 @@ int main (int argc, char **argv) {
|
|||
starty = ((screen->h - STATUSH)/2)-2;
|
||||
bg = NULL;
|
||||
strcpy(text, currentfilename);
|
||||
textpos = &text[strlen(text)];
|
||||
changestate(S_LOADING);
|
||||
drawmap(TRUE);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue