Skip to content

Commit

Permalink
Fix bgAllAnims being assigned a value before initialized. (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlese2 committed Dec 15, 2023
1 parent 243c728 commit 6407f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgame/cg_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,7 @@ void CG_Init(int serverMessageNum, int serverCommandSequence, int clientNum, qbo
const char *s;

// clear out globals
BG_InitAnimsets();
memset(cg_entities, 0, sizeof(cg_entities));

cgs.~cgs_t();
Expand Down Expand Up @@ -1737,7 +1738,6 @@ void CG_Init(int serverMessageNum, int serverCommandSequence, int clientNum, qbo
trap->Print("Not logging security events to disk.\n");

// load some permanent stuff
BG_InitAnimsets();
BG_VehicleLoadParms();
CG_InitJetpackGhoul2();
CG_PmoveClientPointerUpdate();
Expand Down

0 comments on commit 6407f98

Please sign in to comment.