Skip to content

Commit

Permalink
Fix broken for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
tjone270 committed Jun 16, 2024
1 parent b79d982 commit a75533c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,17 @@ void InitializeVm(void) {
level = (level_locals_t*)(*(int32_t*)OFFSET_RELP_LEVEL + OFFSET_RELP_LEVEL + 4);
DebugPrint("level... ");
bg_itemlist = (gitem_t*)*(int64_t*)((*(int32_t*)OFFSET_RELP_BG_ITEMLIST + OFFSET_RELP_BG_ITEMLIST + 4));
DebugPrint("bg_itemlist..");
DebugPrint("bg_itemlist...");
#elif defined(__i386) || defined(_M_IX86)
g_entities = (gentity_t*)(*(int32_t*)OFFSET_RELP_G_ENTITIES + 0xCEFF4 + (pint)qagame);
DebugPrint("g_entities... ");
level = (level_locals_t*)(*(int32_t*)OFFSET_RELP_LEVEL + 0xCEFF4 + (pint)qagame);
DebugPrint("level... ");
bg_itemlist = (gitem_t*)*(int32_t*)((*(int32_t*)OFFSET_RELP_BG_ITEMLIST + 0xCEFF4 + (pint)qagame));
DebugPrint("bg_itemlist..");
DebugPrint("bg_itemlist...");
#endif

for (bg_numItems = 1; bg_itemlist[ bg_numItems ].classname; bg_numItems++);
DebugPrint(".\n");
}

// Called after the game is initialized.
Expand Down

0 comments on commit a75533c

Please sign in to comment.