DataModel jobId fix

This commit is contained in:
lightbulblighter 2022-08-12 02:17:06 -07:00
parent 5dacb11496
commit 3105c711de
No known key found for this signature in database
GPG Key ID: 58D6EDC2C38C9B3B
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ DataModel__getJobId_t DataModel__getJobId = (DataModel__getJobId_t)ADDRESS_DATAM
int __fastcall DataModel__getJobId_hook(DataModel* _this, void*, int a2)
{
if (!setJobId && hasJobIdArg && !jobId.empty())
if (!setJobId && hasJobId && !jobId.empty())
{
_this->jobId = Helpers::ws2s(jobId);
setJobId = true;

View File

@ -44,4 +44,4 @@ extern CRobloxApp__InitInstance_t CRobloxApp__InitInstance;
extern CRobloxCommandLineInfo__ParseParam_t CRobloxCommandLineInfo__ParseParam;
extern std::wstring jobId;
extern bool hasJobIdArg;
extern bool hasJobId;