Skip to content

Commit

Permalink
Fixed compilation issue in P_ControlShutdown - I notice that impulseC…
Browse files Browse the repository at this point in the history
…ounts has moved so instead I've changed that so that it instead M_Free's controlCounts.
  • Loading branch information
danij committed Jun 26, 2008
1 parent f9de2fe commit dd3cb91
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doomsday/engine/portable/src/p_control.c
Expand Up @@ -218,16 +218,14 @@ void P_ControlShutdown(void)
{
M_Free(playerControls[i].name);
M_Free(playerControls[i].bindClassName);
M_Free(controlCounts[i]);
M_Free(controlCounts[i]);
}
playerControlCount = 0;
M_Free(playerControls);
}
playerControls = 0;

if(impulseCounts)
M_Free(impulseCounts);
impulseCounts = 0;
M_Free(controlCounts);
controlCounts = 0;
}

/**
Expand Down Expand Up @@ -300,7 +298,6 @@ void P_MaintainControlDoubleClicks(int playerNum, int control, float pos)
void P_GetControlState(int playerNum, int control, float* pos, float* relativeOffset)
{
float tmp;
int localPlayerNum;
struct bclass_s* bc = 0;
struct dbinding_s* binds = 0;

Expand Down

0 comments on commit dd3cb91

Please sign in to comment.