by _mental_ » Wed Mar 13, 2019 9:28 am
It's a different one.
userinfo is empty while
GetGender() doesn't expect that. Not sure if it's related to a static event handler from where it was called.
Code: Select all
userinfo_t::GetGender() Line 253
FStringTable::GetString(const char * name, unsigned int * langtable, int gender) Line 473
FStringTable::operator[](const char * name) Line 97
FStringTable::operator()(const char * name) Line 528
LocalizeString(const FString & label, bool prefixed, FString * result) Line 68
AF_FStringTable_Localize(VMValue * param, int numparam, VMReturn * ret, int numret, const unsigned char * reginfo) Line 80
VMExec_Checked::ExecScriptFunc(VMFrameStack * stack, VMReturn * ret, int numret) Line 700
VMExec_Checked::Exec(VMFunction * func, VMValue * params, int numparams, VMReturn * ret, int numret) Line 2005
VMScriptFunction::FirstScriptCall(VMFunction * func, VMValue * params, int numparams, VMReturn * ret, int numret) Line 297
VMCall(VMFunction * func, VMValue * params, int numparams, VMReturn * results, int numresults) Line 569
DStaticEventHandler::OnRegister() Line 698
EventManager::RegisterHandler(DStaticEventHandler * handler) Line 58
EventManager::InitHandler(PClass * type) Line 219
EventManager::InitStaticHandlers(FLevelLocals * l, bool map) Line 240
PClassActor::StaticInit() Line 399
D_DoomMain() Line 2494
It's a different one.
[b]userinfo[/b] is empty while [url=https://github.com/coelckers/gzdoom/blob/8dea4f9523d1b6091cb9dd876fd6f6449e7d9c8f/src/d_player.h#L253]GetGender()[/url] doesn't expect that. Not sure if it's related to a static event handler from where it was called.
[code]userinfo_t::GetGender() Line 253
FStringTable::GetString(const char * name, unsigned int * langtable, int gender) Line 473
FStringTable::operator[](const char * name) Line 97
FStringTable::operator()(const char * name) Line 528
LocalizeString(const FString & label, bool prefixed, FString * result) Line 68
AF_FStringTable_Localize(VMValue * param, int numparam, VMReturn * ret, int numret, const unsigned char * reginfo) Line 80
VMExec_Checked::ExecScriptFunc(VMFrameStack * stack, VMReturn * ret, int numret) Line 700
VMExec_Checked::Exec(VMFunction * func, VMValue * params, int numparams, VMReturn * ret, int numret) Line 2005
VMScriptFunction::FirstScriptCall(VMFunction * func, VMValue * params, int numparams, VMReturn * ret, int numret) Line 297
VMCall(VMFunction * func, VMValue * params, int numparams, VMReturn * results, int numresults) Line 569
DStaticEventHandler::OnRegister() Line 698
EventManager::RegisterHandler(DStaticEventHandler * handler) Line 58
EventManager::InitHandler(PClass * type) Line 219
EventManager::InitStaticHandlers(FLevelLocals * l, bool map) Line 240
PClassActor::StaticInit() Line 399
D_DoomMain() Line 2494[/code]