Total RP 3

Total RP 3

4M Downloads

Default profile doesn't initialize LC field correctly

Meorawr opened this issue ยท 0 comments

commented

getDefaultProfile().player.character = {
v = 1,
RP = TRP3_Enums.ROLEPLAY_STATUS.IN_CHARACTER,
XP = TRP3_Enums.ROLEPLAY_EXPERIENCE.EXPERIENCED,
LC = TRP3_Configuration["AddonLocale"] or GetLocale(),
}

The LC field is initialized in the main chunk of the dashboard script, which is before the TRP3_Configuration saved variable has loaded. The only reason this code doesn't outright error is because we initialize that variable with a blank table, which is something else we probably shouldn't do (and in brief testing - removing that actually works once this is fixed).