Skip to content

Commit

Permalink
GAME-LOGIC: Fix deathSystems return value
Browse files Browse the repository at this point in the history
PATCH
  • Loading branch information
TTENSHII committed Oct 2, 2023
1 parent 884b448 commit eb80397
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/Client/Systems/Graphic/GraphicSystems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ namespace Systems {
std::vector<std::function<void(std::size_t, std::size_t)>>
GraphicSystems::getGraphicsSystems()
{
std::vector<std::function<void(std::size_t, std::size_t)>>
graphicSystems;

std::vector<std::function<void(std::size_t, std::size_t)>>
audioSystems = getAudioSystems();
std::vector<std::function<void(std::size_t, std::size_t)>>
Expand All @@ -27,22 +24,18 @@ namespace Systems {
std::vector<std::function<void(std::size_t, std::size_t)>>
deathSystems = DeathSystems::getDeathSystems();

graphicSystems.insert(
graphicSystems.end(),
audioSystems.begin(),
audioSystems.end());
graphicSystems.insert(
graphicSystems.end(),
audioSystems.insert(
audioSystems.end(),
spriteSystems.begin(),
spriteSystems.end());
graphicSystems.insert(
graphicSystems.end(),
audioSystems.insert(
audioSystems.end(),
textSystems.begin(),
textSystems.end());
graphicSystems.insert(
graphicSystems.end(),
audioSystems.insert(
audioSystems.end(),
deathSystems.begin(),
deathSystems.end());
return graphicSystems;
return audioSystems;
}
} // namespace Systems

0 comments on commit eb80397

Please sign in to comment.