Put const data in hiddenLadderDown

This commit is contained in:
Tal Hayon
2022-04-18 00:21:27 +03:00
parent 2a528d35b3
commit 7a65a8a845
3 changed files with 8 additions and 12 deletions
+7 -2
View File
@@ -4,11 +4,16 @@
#include "functions.h"
#include "flags.h"
extern void (*const gUnk_08122604[])(Entity*);
void sub_08091F14(Entity*);
void sub_08092000(Entity*);
void HiddenLadderDown(Entity* this) {
static void (*const actionFuncs[])(Entity*) = {
sub_08091F14,
sub_08092000,
};
if (this->action < 2) {
gUnk_08122604[this->action](this);
actionFuncs[this->action](this);
}
}