mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use section's offset instead of general one
That's more future-proof and makes more sense
This commit is contained in:
@@ -346,7 +346,7 @@ void out_CreatePatch(uint32_t type, struct Expression *expr)
|
||||
pPatch->nType = type;
|
||||
fstk_DumpToStr(pPatch->tzFilename, sizeof(pPatch->tzFilename));
|
||||
pPatch->nLine = nLineNo;
|
||||
pPatch->nOffset = nPC;
|
||||
pPatch->nOffset = pCurrentSection->nPC;
|
||||
|
||||
while ((rpndata = rpn_PopByte(expr)) != 0xDEAD) {
|
||||
switch (rpndata) {
|
||||
|
||||
Reference in New Issue
Block a user