Skip to content
Snippets Groups Projects
Commit 9c86cd0b authored by fickleheart's avatar fickleheart
Browse files

More union types for the union type god

parent 520e3c5d
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,8 @@ struct hook_s
UINT16 id;
union {
mobjtype_t mt;
char *skinname; // also used as musname for ShouldJingleContinue... I'm lazy
char *skinname;
char *musname;
char *funcname;
} s;
boolean error;
......@@ -1647,7 +1648,7 @@ boolean LUAh_ShouldJingleContinue(player_t *player, const char *musname)
for (hookp = roothook; hookp; hookp = hookp->next)
{
if (hookp->type != hook_ShouldJingleContinue
|| (hookp->s.skinname && strcmp(hookp->s.skinname, musname)))
|| (hookp->s.musname && strcmp(hookp->s.musname, musname)))
continue;
if (lua_gettop(gL) == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment