[Script]: Use .at instead of [] (#611)

* [Script]: Use .at instead of []

* [Script]: Fix typo
This commit is contained in:
Edo
2022-11-29 16:01:20 +00:00
committed by GitHub
parent b195d96abb
commit 845b9e0341
2 changed files with 9 additions and 9 deletions

View File

@ -340,7 +340,7 @@ namespace Components
{
for (const auto& func : CustomScrFunctions)
{
const auto& name = func.aliases[0];
const auto& name = func.aliases.at(0);
Game::Scr_RegisterFunction(reinterpret_cast<int>(func.actionFunc), name.data());
}
}
@ -367,7 +367,7 @@ namespace Components
{
for (const auto& meth : CustomScrMethods)
{
const auto& name = meth.aliases[0];
const auto& name = meth.aliases.at(0);
Game::Scr_RegisterFunction(reinterpret_cast<int>(meth.actionFunc), name.data());
}
}