Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
0a0c17da
Commit
0a0c17da
authored
3 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
PARANOIA: I_Error if mobj hook is called with MT_NULL
parent
ff57a983
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1729
Remove MT_NULL hacks
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_hooklib.c
+4
-0
4 additions, 0 deletions
src/lua_hooklib.c
with
4 additions
and
0 deletions
src/lua_hooklib.c
+
4
−
0
View file @
0a0c17da
...
@@ -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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment