X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Floader%2FTypeDescription.cpp;h=8fd95d7437ef90f3744eea17d0135f4980d1aa64;hb=9f352d64f920f46a2d5b4fe67408154629933293;hp=ed88e8ec8eedee6e3d4f83d482ae7008f39e0440;hpb=b02da898c7c8a08141df4e797774a61cf5e0163f;p=l2e.git diff --git a/src/loader/TypeDescription.cpp b/src/loader/TypeDescription.cpp index ed88e8e..8fd95d7 100644 --- a/src/loader/TypeDescription.cpp +++ b/src/loader/TypeDescription.cpp @@ -46,6 +46,12 @@ void TypeDescription::Construct(void *data) const { } } +void TypeDescription::Load(void *data) const { + if (loader) { + (*loader)(data); + } +} + void TypeDescription::AddSupertype(int id, std::ptrdiff_t offset) { supertypes[id] = offset;