mirror of
https://github.com/libAthena/athena.git
synced 2025-12-18 09:25:22 +00:00
Reimplement Exceptions.
This commit is contained in:
@@ -48,7 +48,7 @@ void SkywardSwordFile::addQuest(Athena::SkywardSwordQuest *q)
|
||||
SkywardSwordQuest *SkywardSwordFile::quest(atUint32 id)
|
||||
{
|
||||
if (id > m_quests.size() - 1)
|
||||
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