title: How to fix my wrong image loading in pygame
body: <p>I'm working on a little game project with friends using python and pygame.</p>
  <p>Today I tried to write the weapon part in the code and everything is correct but when I'm  running the code, it is loading the wrong weapons images (it is loading the character images which are in another folder...) so I checked the code many times but I dont find anything and why is it taking the character images...</p>
  <p>(Btw we didnt designed the weapons already, I just wanted to finish the code part so that we can work on weapons design later... so I just replaced them with temporary images with number for animation)</p>
  <p>Here is the part of the code loading the weapon images, I've done almost the same thing for the character images and its working perfectly:</p>
  <pre><code>weapon_animation_types = [&quot;empty&quot;, &quot;sword&quot;, &quot;rifle&quot;]
  for weapon_animation in weapon_animation_types:
      weapon_temp_list = []
      longueur_fichier_weapon = len(os.listdir(f'img/weapons/{weapon_animation}'))
      for j in range(longueur_fichier_weapon):
          img_weapon = pygame.image.load(f'img/weapons/{weapon_animation}/{j}.png')
          img_weapon = pygame.transform.scale(img, (int(img.get_width() * scale), int(img.get_height() * scale)))
          weapon_temp_list.append(img_weapon)
      self.weapons_animations_list.append(temp_list)
  self.weapon_image = self.weapons_animations_list[self.weapon][self.weapon_frame_index]
  </code></pre>
  <p>I dont think the issue is in this part but we never know...</p>
  <p>Here you can find the GitHub repository (which I think is more usefull to understand my issue...) of the project with the full code and the images to be loaded:
  <a href="https://github.com/Nirs123/Neon_City_Brawl" rel="nofollow noreferrer">https://github.com/Nirs123/Neon_City_Brawl</a></p>
  <p>Appreciate every feedback :)</p>