mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed compile errors in last commit.
This commit is contained in:
parent
454f553ea4
commit
7f7be9e393
1 changed files with 3 additions and 2 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "p_tags.h"
|
||||
#include "r_state.h"
|
||||
#include "w_wad.h"
|
||||
#include "textures.h"
|
||||
#include "g_levellocals.h"
|
||||
|
||||
// MACROS ------------------------------------------------------------------
|
||||
|
@ -621,9 +622,9 @@ void SetCompatibilityParams()
|
|||
}
|
||||
case CP_SETWALLTEXTURE:
|
||||
{
|
||||
if (CompatParams[i + 1] < numlines)
|
||||
if ((unsigned)CompatParams[i + 1] < level.lines.Size())
|
||||
{
|
||||
side_t *side = lines[CompatParams[i + 1]].sidedef[CompatParams[i + 2]];
|
||||
side_t *side = level.lines[CompatParams[i + 1]].sidedef[CompatParams[i + 2]];
|
||||
if (side != NULL)
|
||||
{
|
||||
assert(TexNames.Size() > (unsigned int)CompatParams[i + 4]);
|
||||
|
|
Loading…
Reference in a new issue