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

@ -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;