From b2aa973396a95ba9c5c564c56d60c74345ea9576 Mon Sep 17 00:00:00 2001 From: drfrag Date: Wed, 11 Sep 2019 14:34:09 +0200 Subject: [PATCH] - Fixed warnings. --- src/scripting/vmthunks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 5f53773f5..1b37a05ad 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -1336,7 +1336,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, RemoveForceField, RemoveForceField) static F3DFloor* Get3DFloor(sector_t *self, int index) { - if ((index < 0) || (index >= self->e->XFloor.ffloors.Size())) + if ((index < 0) || ((unsigned int)index >= self->e->XFloor.ffloors.Size())) return nullptr; return self->e->XFloor.ffloors[index]; } @@ -1361,7 +1361,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, RemoveForceField, RemoveForceField) static sector_t* GetAttached(sector_t *self, int index) { - if ((index < 0) || (index >= self->e->XFloor.attached.Size())) + if ((index < 0) || ((unsigned int)index >= self->e->XFloor.attached.Size())) return nullptr; return self->e->XFloor.attached[index]; }