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 */
|
/* variable sizes */
|
||||||
#define SMALLBUFLEN 64 /* small text buffer */
|
#define SMALLBUFLEN 64 /* small text buffer */
|
||||||
|
|
|
@ -1251,6 +1251,7 @@ int main (int argc, char **argv) {
|
||||||
starty = ((screen->h - STATUSH)/2)-2;
|
starty = ((screen->h - STATUSH)/2)-2;
|
||||||
bg = NULL;
|
bg = NULL;
|
||||||
strcpy(text, currentfilename);
|
strcpy(text, currentfilename);
|
||||||
|
textpos = &text[strlen(text)];
|
||||||
changestate(S_SAVING);
|
changestate(S_SAVING);
|
||||||
drawmap(TRUE);
|
drawmap(TRUE);
|
||||||
break;
|
break;
|
||||||
|
@ -1259,6 +1260,7 @@ int main (int argc, char **argv) {
|
||||||
starty = ((screen->h - STATUSH)/2)-2;
|
starty = ((screen->h - STATUSH)/2)-2;
|
||||||
bg = NULL;
|
bg = NULL;
|
||||||
strcpy(text, currentfilename);
|
strcpy(text, currentfilename);
|
||||||
|
textpos = &text[strlen(text)];
|
||||||
changestate(S_LOADING);
|
changestate(S_LOADING);
|
||||||
drawmap(TRUE);
|
drawmap(TRUE);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue