Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
defbbfb6
Commit
defbbfb6
authored
Dec 08, 2021
by
Richard Gobeille
Browse files
engine: fix use of value before validation in polymer_updatewall()
parent
f7834055
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/polymer.cpp
View file @
defbbfb6
...
...
@@ -3209,11 +3209,13 @@ static void polymer_updatewall(int16_t wallnum)
// yes, this function is messy and unefficient
// it also works, bitches
if
(
sectofwall
<
0
||
sectofwall
>=
numsectors
||
wallnum
<
0
||
wallnum
>
numwalls
)
return
;
sec
=
&
sector
[
sectofwall
];
if
(
sectofwall
<
0
||
sectofwall
>=
numsectors
||
wallnum
<
0
||
wallnum
>
numwalls
||
sec
->
wallptr
>
wallnum
||
wallnum
>=
(
sec
->
wallptr
+
sec
->
wallnum
))
if
(
sec
->
wallptr
>
wallnum
||
wallnum
>=
(
sec
->
wallptr
+
sec
->
wallnum
))
return
;
// yay, corrupt map
if
(
sec
->
floorz
==
sec
->
ceilingz
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment