Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
[bus] fix preload detection
Browse files Browse the repository at this point in the history
  • Loading branch information
codehz committed Aug 14, 2020
1 parent 5730b95 commit 0b88ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BuiltinMods/Bus/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ struct RegisterAPI {

inline RegisterAPI(char const *name, bool check, void (*t)()) {
if (check)
GetPreloadList().emplace_back(name, t);
else
GetMap().emplace(name, t);
else
GetPreloadList().emplace_back(name, t);
}
};

0 comments on commit 0b88ca0

Please sign in to comment.