mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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;
|
pPatch->nType = type;
|
||||||
fstk_DumpToStr(pPatch->tzFilename, sizeof(pPatch->tzFilename));
|
fstk_DumpToStr(pPatch->tzFilename, sizeof(pPatch->tzFilename));
|
||||||
pPatch->nLine = nLineNo;
|
pPatch->nLine = nLineNo;
|
||||||
pPatch->nOffset = nPC;
|
pPatch->nOffset = pCurrentSection->nPC;
|
||||||
|
|
||||||
while ((rpndata = rpn_PopByte(expr)) != 0xDEAD) {
|
while ((rpndata = rpn_PopByte(expr)) != 0xDEAD) {
|
||||||
switch (rpndata) {
|
switch (rpndata) {
|
||||||
|
|||||||
Reference in New Issue
Block a user