summaryrefslogtreecommitdiff
path: root/docs/regalloc.md
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-05-30 01:11:34 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2026-05-30 01:11:34 -0400
commit8ff73b86349bb43dd03be2c0887c7dd2961e0e87 (patch)
treef0f1a7599b4d32c2a500f7f0c56767272fb8e061 /docs/regalloc.md
parent66356df1a6dcd8f7be03bd0c4773c037fbc2a7ec (diff)
Update decomp guide to use new res enum format
Diffstat (limited to 'docs/regalloc.md')
-rw-r--r--docs/regalloc.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/regalloc.md b/docs/regalloc.md
index c0115db6..05c6cec0 100644
--- a/docs/regalloc.md
+++ b/docs/regalloc.md
@@ -93,13 +93,13 @@ Explicitly casting from one type to another can affect regalloc. This applies to
Even the type of casting operator you use affects it in some cases. For example, this C-style cast:
```cpp
-J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(m_arcname, VBAKH_BDL_VBAKH);
+J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(m_arcname, dRes_INDEX_VBAKH_BDL_VBAKH_e);
```
Is functionally equivalent to this C++ static_cast:
```cpp
-J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(m_arcname, VBAKH_BDL_VBAKH));
+J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(m_arcname, dRes_INDEX_VBAKH_BDL_VBAKH_e));
```
But the two of them produce different regalloc.