Skip to content

Commit

Permalink
Merge pull request #1168 from lairworks/fixWarningShadowFieldInConstr…
Browse files Browse the repository at this point in the history
…uctor

Rename Sprite test fixture field to fix warning
  • Loading branch information
DanRStevens authored Nov 3, 2024
2 parents 2429920 + f53325b commit 2a64870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Resource/Sprite.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Sprite : public ::testing::Test {
NAS2D::Image image{&imageBuffer, 4, {1, 1}};
NAS2D::AnimationSet::Frame frame{image, {{0, 0}, {1, 1}}, {0, 0}, 2};
NAS2D::AnimationSet::Frame frameStop{image, {{0, 0}, {1, 1}}, {0, 0}, 0};
NAS2D::AnimationSet animationSet{{}, {{"defaultAction", {frame}}, {"frameStopAction", {frameStop}}}};
SpriteDerived sprite{animationSet, "defaultAction"};
NAS2D::AnimationSet testAnimationSet{{}, {{"defaultAction", {frame}}, {"frameStopAction", {frameStop}}}};
SpriteDerived sprite{testAnimationSet, "defaultAction"};
};


Expand Down

0 comments on commit 2a64870

Please sign in to comment.