Selaa lähdekoodia

fix icon index

Laserlicht 1 kuukausi sitten
vanhempi
sitoutus
81c64ce54f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/entities/ResourceTypeHandler.h

+ 1 - 1
lib/entities/ResourceTypeHandler.h

@@ -46,7 +46,7 @@ public:
 	std::string getJsonKey() const override { return identifier; }
 	int32_t getIndex() const override { return id.getNum(); }
 	GameResID getId() const override { return id;}
-	int32_t getIconIndex() const override { return 0; }
+	int32_t getIconIndex() const override { return id.getNum(); }
 	std::string getModScope() const override { return modScope; };
 	void registerIcons(const IconRegistar & cb) const override;
 	std::string getNameTextID() const override;