01-31-2023, 06:21 AM
(This post was last modified: 01-31-2023, 06:37 AM by winteriscoming.)
The issue seems to occur when const char * dialogueTest[] is defined as a global variable. In that case, it doesn't retrieve the string in the position specified. If dialogueTest is defined inside of the function that calls it, it works... why would that be?
Edit: It works as a global variable when defined as:
const char* const dialogueTest[3] = {
"Line 1 of text",
"Line 2 of text",
"Line 3 of text",
};
Edit: It works as a global variable when defined as:
const char* const dialogueTest[3] = {
"Line 1 of text",
"Line 2 of text",
"Line 3 of text",
};