summaryrefslogtreecommitdiff
path: root/docs/tutorial
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2022-10-25 01:29:38 +0200
committerGitHub <noreply@github.com>2022-10-24 19:29:38 -0400
commitc0a0688dc5201bc4186fb11965e385b3dbf8ce3b (patch)
treec5e869a22761b641e5d834d0b7b03a56a8044e96 /docs/tutorial
parentce2e5e71c8b71d45ec3ad1cafe34b00d9a50b8a6 (diff)
Remove `const` from `ActorInit` initvars declarations (#1417)
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/beginning_decomp.md2
-rw-r--r--docs/tutorial/data.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/beginning_decomp.md b/docs/tutorial/beginning_decomp.md
index f6b002534..a7e04cc97 100644
--- a/docs/tutorial/beginning_decomp.md
+++ b/docs/tutorial/beginning_decomp.md
@@ -639,7 +639,7 @@ void func_80A87BEC(EnJj* this, PlayState* play);
void func_80A87C30(EnJj* this, PlayState* play);
/*
-const ActorInit En_Jj_InitVars = {
+ActorInit En_Jj_InitVars = {
ACTOR_EN_JJ,
ACTORTYPE_ITEMACTION,
FLAGS,
diff --git a/docs/tutorial/data.md b/docs/tutorial/data.md
index 338522436..8fae67102 100644
--- a/docs/tutorial/data.md
+++ b/docs/tutorial/data.md
@@ -93,7 +93,7 @@ s32 D_80B18910[] = { 0x0A000039, 0x20010000, 0x00000000, 0x00000000, 0x00000000,
s32 D_80B1893C[] = { 0x00000000, 0x00000000, 0xFF000000 };
-const ActorInit En_Tg_InitVars = {
+ActorInit En_Tg_InitVars = {
ACTOR_EN_TG,
ACTORTYPE_NPC,
FLAGS,
@@ -489,7 +489,7 @@ To replace the `extern`, because the data is in a separate file, we include the
Lastly, uncomment the InitVars block that's been sitting there the whole time. The data section of the file now looks like
```C
-const ActorInit En_Jj_InitVars = {
+ActorInit En_Jj_InitVars = {
ACTOR_EN_JJ,
ACTORTYPE_ITEMACTION,
FLAGS,
@@ -566,7 +566,7 @@ In this, press `g` to open up goto position, and paste in the address `0xE3ED10`
Notice that the numbers in the bottom pane is all shifted one word to the left. We therefore need some extra padding somewhere. The real issue is where. Thankfully the guess at the bottom gives us a hint: let's try just under `InitVars`. Just put a padding variable straight after them:
```C
-const ActorInit En_Jj_InitVars = {
+ActorInit En_Jj_InitVars = {
ACTOR_EN_JJ,
ACTORTYPE_ITEMACTION,
FLAGS,