Skip to content
Snippets Groups Projects
Commit 0a0c17da authored by James R.'s avatar James R.
Browse files

PARANOIA: I_Error if mobj hook is called with MT_NULL

parent ff57a983
Branches
Tags
1 merge request!1729Remove MT_NULL hacks
...@@ -347,6 +347,10 @@ static boolean prepare_mobj_hook ...@@ -347,6 +347,10 @@ static boolean prepare_mobj_hook
int hook_type, int hook_type,
mobjtype_t mobj_type mobjtype_t mobj_type
){ ){
#ifdef PARANOIA
if (mobj_type == MT_NULL)
I_Error("MT_NULL has been passed to a mobj hook\n");
#endif
return init_hook_type(hook, default_status, return init_hook_type(hook, default_status,
hook_type, mobj_type, NULL, hook_type, mobj_type, NULL,
mobj_hook_available(hook_type, mobj_type)); mobj_hook_available(hook_type, mobj_type));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment