mirror of https://github.com/sm64pc/sm64pc.git
Fixes Bug with too many special charicters in one dialog.
This commit is contained in:
parent
2cb7e10272
commit
95fa153a56
|
@ -68,7 +68,7 @@ void load_language(char* jsonTxt, s8 language){
|
||||||
lines = cJSON_GetObjectItemCaseSensitive(dialog, "lines");
|
lines = cJSON_GetObjectItemCaseSensitive(dialog, "lines");
|
||||||
|
|
||||||
int lineAmount = cJSON_GetArraySize(lines);
|
int lineAmount = cJSON_GetArraySize(lines);
|
||||||
int dialogSize = lineAmount * 45;
|
int dialogSize = lineAmount * 45 * 7;
|
||||||
char* dialogTxt = malloc(dialogSize * sizeof(char));
|
char* dialogTxt = malloc(dialogSize * sizeof(char));
|
||||||
strcpy(dialogTxt, "");
|
strcpy(dialogTxt, "");
|
||||||
int currLine = 0;
|
int currLine = 0;
|
||||||
|
|
Loading…
Reference in New Issue