| 88 | } |
| 89 | |
| 90 | int StaticHandler::GetIndex(int staticID) |
| 91 | { |
| 92 | if (staticID < 0 || staticID >= _lut.size()) |
| 93 | { |
| 94 | TENLog(fmt::format("Attempted to get index of invalid static object {}.", staticID), LogLevel::Warning); |
| 95 | return _lut.front(); |
| 96 | } |
| 97 | |
| 98 | return _lut[staticID]; |
| 99 | } |
| 100 | |
| 101 | StaticInfo& StaticHandler::operator [](int staticID) |
| 102 | { |
no test coverage detected