mirror of
https://github.com/zeldaret/tmc
synced 2026-09-06 19:10:56 -04:00
Put const data into npc9
This commit is contained in:
+11
-2
@@ -3,10 +3,19 @@
|
||||
#include "message.h"
|
||||
#include "npc.h"
|
||||
|
||||
extern void (*const gUnk_0810C290[])(Entity*);
|
||||
void sub_08062AF0(Entity*);
|
||||
void sub_08062B14(Entity*);
|
||||
void sub_08062B48(Entity*);
|
||||
void sub_08062B70(Entity*);
|
||||
|
||||
void NPC9(Entity* this) {
|
||||
gUnk_0810C290[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_08062AF0,
|
||||
sub_08062B14,
|
||||
sub_08062B48,
|
||||
sub_08062B70,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_08062AF0(Entity* this) {
|
||||
|
||||
Reference in New Issue
Block a user