Skip to content

Commit

Permalink
Prevent NULL pointer dereferences
Browse files Browse the repository at this point in the history
  • Loading branch information
vexed committed Jul 12, 2015
1 parent 1533d68 commit 8be5c79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,7 @@ STRUCTURE *buildBlueprint(STRUCTURE_STATS const *psStats, Vector2i xy, uint16_t

static bool setFunctionality(STRUCTURE *psBuilding, STRUCTURE_TYPE functionType)
{
ASSERT_OR_RETURN(false, psBuilding != NULL, "Invalid pointer");
CHECK_STRUCTURE(psBuilding);

switch (functionType)
Expand Down

0 comments on commit 8be5c79

Please sign in to comment.