Added use_item_on_dude macro to sfall.h

Various code edits:
* Implemented more HookCalls/MakeCalls/SafeWriteBatch in code.
* Moved return/jump address consts into their respective functions.
* Changed for-loop with iterators to use pre-increment.
This commit is contained in:
NovaRain
2020-04-18 21:19:22 +08:00
parent 1884e279c7
commit 229371e4ab
34 changed files with 116 additions and 125 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ end:
}
static void InitExtraPatches() {
for (auto it = patchFiles.begin(); it != patchFiles.end(); it++) {
for (auto it = patchFiles.begin(); it != patchFiles.end(); ++it) {
if (!it->empty()) fo::func::db_init(it->c_str(), 0);
}
// free memory