Merge pull request #66 from A-lex-Ra/main

small memory fix + fun testing languages
This commit is contained in:
MihailRis 2023-12-18 19:25:35 +03:00 • committed by GitHub
commit 7f8935a93c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 0 deletions

View file

@ -27,3 +27,8 @@ ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) {
}
}
}
ContentGfxCache::~ContentGfxCache()
{
delete[] sideregions;
}

View file

@ -12,6 +12,7 @@ class ContentGfxCache {
UVRegion* sideregions;
public:
ContentGfxCache(const Content* content, Assets* assets);
~ContentGfxCache();
inline const UVRegion& getRegion(blockid_t id, int side) const {
return sideregions[id * 6 + side];