mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 10:37:17 -07:00
Fix gfx patching on 32-bit platforms (#2213)
This commit is contained in:
parent
56ac27b8f4
commit
0f3c2d7c78
1 changed files with 5 additions and 0 deletions
|
@ -867,6 +867,11 @@ extern "C" void ResourceMgr_PatchGfxByName(const char* path, const char* patchNa
|
|||
}
|
||||
}*/
|
||||
|
||||
// Index refers to individual gfx words, which are half the size on 32-bit
|
||||
if (sizeof(uintptr_t) < 8) {
|
||||
index /= 2;
|
||||
}
|
||||
|
||||
Gfx* gfx = (Gfx*)&res->instructions[index];
|
||||
|
||||
if (!originalGfx.contains(path) || !originalGfx[path].contains(patchName)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue