Skip to content

Commit

Permalink
fix compilation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Feb 24, 2025
1 parent 3fcf434 commit ed1f3d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bo4-dll/data/custom_gsc_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ void LogPrint(ScriptInstance inst) {
LOG_INFO("{}", ScrVm_GetString(inst, 0));
break;
case TYPE_HASH: {
Hash hash;
LOG_INFO("#{}", hash_lookup::ExtractTmp(inst, ScrVm_GetHash(&hash, inst, 0)->hash));
XHash hash;
LOG_INFO("#{}", hash_lookup::ExtractTmp(inst, ScrVm_GetHash(&hash, inst, 0)->name));
}
break;
case TYPE_INTEGER:
Expand Down Expand Up @@ -49,9 +49,9 @@ void HashLookup(ScriptInstance inst) {
ScrVm_AddConstString(inst, ScrVm_GetConstString(inst, 0));
}
else if (type == t8internal::TYPE_HASH) {
Hash hash;
XHash hash;

auto hashedValue = ScrVm_GetHash(&hash, inst, 0)->hash;
auto hashedValue = ScrVm_GetHash(&hash, inst, 0)->name;

auto* res = hash_lookup::Extract(hashedValue);

Expand Down

0 comments on commit ed1f3d6

Please sign in to comment.