Skip to content

Commit

Permalink
properly initialise harmless fish (#2589)
Browse files Browse the repository at this point in the history
In #2587 I missed a few things (a forgotten collision group setting in the constructor I left there from testing + I forgot to call the parent's initialize() function). It was merged before I noticed. This fixes it.
  • Loading branch information
Narre authored Aug 18, 2023
1 parent 7955fcf commit b246906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/badguy/fish_harmless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ FishHarmless::FishHarmless(const ReaderMapping& reader) :
FishSwimming(reader, "images/creatures/fish/ice/goldfish.sprite")
{
m_countMe = false;
set_group(COLGROUP_DISABLED);
}

void
FishHarmless::initialize()
{
FishSwimming::initialize();
set_group(COLGROUP_MOVING_ONLY_STATIC);
}

Expand Down

0 comments on commit b246906

Please sign in to comment.