- fixed a few warnings pointed out by GCC.

This commit is contained in:
Christoph Oelckers 2023-03-26 10:35:33 +02:00
commit cffe67dcee
5 changed files with 19 additions and 9 deletions

View file

@ -2510,8 +2510,8 @@ bool P_TryMove(AActor *thing, const DVector2 &pos,
while (true)
{
double bestfrac = 1.1;
spechit_t besthit;
int besthitnum;
spechit_t besthit{};
int besthitnum = -1;
// find the portal nearest to the crossing actor
for (unsigned i = 0; i < portalhit.Size();i++)
{