implemented vector in tex repo

This commit is contained in:
Sandro Sobczyński
2020-10-31 22:51:46 +01:00
parent f9dc79caf1
commit d4be8e94e7
5 changed files with 70 additions and 67 deletions
+6 -2
View File
@@ -15,6 +15,7 @@
#include <draw_sampling.h>
#include "./texture_wrap_settings.hpp"
#include "./texture_link.hpp"
#include "../include/utils/debug.hpp"
#include <vector>
/**
@@ -138,8 +139,11 @@ public:
void removeLink(const u32 &t_meshId, const u32 &t_materialId)
{
u32 index = getIndexOfLink(t_meshId, t_materialId);
removeLink(index);
s32 index = getIndexOfLink(t_meshId, t_materialId);
if (index != -1)
removeLink(index);
else
PRINT_ERR("Cant remove link, because it was not found!");
}
private: