Skip to content

Commit

Permalink
- removed pointless heap allocation that never was freed.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 11, 2023
1 parent 99f17f2 commit b75a8ed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/gamedata/d_dehacked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,11 +1067,6 @@ static void SetDehParams(FState *state, int codepointer, VMDisassemblyDumper &di

bool returnsState = codepointer == 6;

// Fakey fake script position thingamajig. Because NULL cannot be used instead.
// Even if the lump was parsed by an FScanner, there would hardly be a way to
// identify which line is troublesome.
FScriptPosition *pos = new FScriptPosition(FString("DEHACKED"), 0);

// Let's identify the codepointer we're dealing with.
PFunction *sym;
sym = dyn_cast<PFunction>(PClass::FindActor(NAME_Weapon)->FindSymbol(FName(MBFCodePointers[codepointer].name), true));
Expand Down

0 comments on commit b75a8ed

Please sign in to comment.