Fixes Bug with too many special charicters in one dialog.

This commit is contained in:
John Collins 2020-09-21 22:03:55 -05:00
parent 2cb7e10272
commit 95fa153a56
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void load_language(char* jsonTxt, s8 language){
lines = cJSON_GetObjectItemCaseSensitive(dialog, "lines");
int lineAmount = cJSON_GetArraySize(lines);
int dialogSize = lineAmount * 45;
int dialogSize = lineAmount * 45 * 7;
char* dialogTxt = malloc(dialogSize * sizeof(char));
strcpy(dialogTxt, "");
int currLine = 0;