mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- oops - add rangecheck to 'FlipLine'
This commit is contained in:
parent
1098a13fdb
commit
57eb1a82d6
1 changed files with 8 additions and 5 deletions
|
@ -3665,6 +3665,8 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, FlipLine)
|
|||
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
|
||||
PARAM_UINT(lineidx);
|
||||
|
||||
if (lineidx < self->Level->lines.Size())
|
||||
{
|
||||
line_t *line = &self->Level->lines[lineidx];
|
||||
vertex_t *v1 = line->v1;
|
||||
vertex_t *v2 = line->v2;
|
||||
|
@ -3672,6 +3674,7 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, FlipLine)
|
|||
line->v1 = v2;
|
||||
line->v2 = v1;
|
||||
|
||||
}
|
||||
self->loader->ForceNodeBuild = true;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue