- fixed quote init.

This commit is contained in:
Christoph Oelckers 2019-12-04 00:38:43 +01:00
parent 72857db17b
commit 6a6d6e3694

View file

@ -46,7 +46,7 @@ void Quotes::MakeStringLabel(FString &quote)
void Quotes::InitializeQuote(int num, const char *text, bool fromscript) void Quotes::InitializeQuote(int num, const char *text, bool fromscript)
{ {
quotes[num] = num; quotes[num] = text;
if (fromscript) // means this is the initial setup from the source data. if (fromscript) // means this is the initial setup from the source data.
{ {
MakeStringLabel(quotes[num]); MakeStringLabel(quotes[num]);
@ -55,7 +55,7 @@ void Quotes::InitializeQuote(int num, const char *text, bool fromscript)
void Quotes::InitializeExQuote(int num, const char *text, bool fromscript) void Quotes::InitializeExQuote(int num, const char *text, bool fromscript)
{ {
exquotes[num] = num; exquotes[num] = text;
if (fromscript) // means this is the initial setup from the source data. if (fromscript) // means this is the initial setup from the source data.
{ {
MakeStringLabel(quotes[num]); MakeStringLabel(quotes[num]);