mapcreator git · master
SDL3 2.5D game and engine using assets, with map editor
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gzFix BUG that ai was to dumb to solve for 3 hours and i solved it by reading wihin 5 minutes,- FUCKgit add src/bird/bird.cppgit add src/bird/bird.cpp
src/bird/bird.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bird/bird.cpp b/src/bird/bird.cpp index c07b793..929fed9 100644 --- a/src/bird/bird.cpp +++ b/src/bird/bird.cpp @@ -33,6 +33,7 @@ Bird::Bird(float x, float y) } bool Bird::Init(SDL_Renderer* renderer) { + birds.clear(); texture = IMG_LoadTexture(renderer, "Bird/Spritesheet/Bird Spritesheet.png"); SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST); return texture != nullptr;