mirror of
https://github.com/libAthena/athena.git
synced 2025-12-10 05:57:57 +00:00
Reimplement Exceptions.
This commit is contained in:
@@ -45,7 +45,7 @@ std::vector<ALTTPQuest*> ALTTPFile::questList() const
|
||||
ALTTPQuest* ALTTPFile::quest(atUint32 id) const
|
||||
{
|
||||
if (id > m_quests.size())
|
||||
THROW_INVALID_OPERATION_EXCEPTION("index out of range");
|
||||
THROW_INVALID_OPERATION_EXCEPTION_RETURN(nullptr, "index out of range");
|
||||
|
||||
return m_quests[id];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user