mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
14 lines
296 B
C++
14 lines
296 B
C++
|
|
#include <TiltedOnlinePCH.h>
|
||
|
|
|
||
|
|
#include <Games/IFormFactory.h>
|
||
|
|
|
||
|
|
IFormFactory* IFormFactory::GetForType(const FormType aId) noexcept
|
||
|
|
{
|
||
|
|
if (aId >= FormType::Count)
|
||
|
|
return nullptr;
|
||
|
|
|
||
|
|
POINTER_SKYRIMSE(IFormFactory*, s_factories, 400508);
|
||
|
|
|
||
|
|
return s_factories.Get()[(uint32_t)aId];
|
||
|
|
}
|