Put const data in frozenFlower

This commit is contained in:
Tal Hayon
2022-04-17 20:33:32 +03:00
parent e6931831b6
commit dcbdf53c11
3 changed files with 8 additions and 12 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
#include "object.h"
extern void (*const gUnk_0812119C[])(Entity*);
void sub_0808A9DC(Entity*);
void nullsub_519(Entity*);
void FrozenFlower(Entity* this) {
gUnk_0812119C[this->action](this);
static void (*const actionFuncs[])(Entity*) = {
sub_0808A9DC,
nullsub_519,
};
actionFuncs[this->action](this);
}
void sub_0808A9DC(Entity* this) {