This commit is contained in:
aozhiwei 2022-12-25 15:12:09 +08:00
parent 3c39bfdda6
commit 48be5120bc
3 changed files with 3 additions and 4 deletions

View File

@ -110,7 +110,7 @@ namespace mt
itr->static_pre_init_cb();
itr->load_cb();
}
for (int i = 0; i < 3; ++i) {
for (size_t i = 0; i < 3; ++i) {
for (auto& itr : meta_tables) {
if (i < itr->init_cbs.size()) {
itr->init_cbs.at(i)();

View File

@ -70,7 +70,7 @@ namespace mt
void Load();
template<class T>
mt::MetaTable* RegMetaTable(const std::string& dir)
void RegMetaTable(const std::string& dir)
{
mt::MetaTable* p = new mt::MetaTable();
p->static_pre_init_cb =
@ -131,7 +131,6 @@ namespace mt
SafeCallStaticPostInit<T>(0);
};
meta_tables.push_back(p);
return p;
}
const std::string GetResDir() { return res_path_; }

2
third_party/f8 vendored

@ -1 +1 @@
Subproject commit be01cfc54ff35720f9a02a32d9fc98a307e79e53
Subproject commit 058af9a9bed40b3c7c256b42b8cf70cd0a22625e