Put const data in palaceArchway

This commit is contained in:
Tal Hayon
2022-04-18 00:46:59 +03:00
parent dffed21613
commit ad2a1ebbdf
3 changed files with 8 additions and 12 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
#include "object.h"
extern void (*const gUnk_081246EC[])(Entity*);
void sub_0809F2A0(Entity*);
void nullsub_537(Entity*);
void PalaceArchway(Entity* this) {
gUnk_081246EC[this->action](this);
static void (*const actionFuncs[])(Entity*) = {
sub_0809F2A0,
nullsub_537,
};
actionFuncs[this->action](this);
}
void sub_0809F2A0(Entity* this) {