2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-02 23:17:26 +00:00

Fix more gcc compilation issues

This commit is contained in:
Jan
2021-03-03 09:12:27 -08:00
parent a15fd17dfe
commit 1a45cf2107
84 changed files with 786 additions and 713 deletions

View File

@@ -32,7 +32,7 @@ public:
for(auto* entry : m_assets)
{
delete entry->m_ptr;
delete entry->Asset();
delete entry;
}

View File

@@ -1,11 +1,12 @@
#pragma once
#include <cstring>
#include <stdexcept>
#include "GlobalAssetPool.h"
#include "AssetPool.h"
#include "XAssetInfo.h"
#include <cstring>
template <typename T>
class AssetPoolStatic final : public AssetPool<T>
{
@@ -85,7 +86,7 @@ public:
{
if(m_free == nullptr)
{
throw std::exception("Could not add asset to static asset pool: capacity exhausted.");
throw std::runtime_error("Could not add asset to static asset pool: capacity exhausted.");
}
AssetPoolEntry* poolSlot = m_free;