Skip to content

Commit

Permalink
Store the result of swap_lib in a new local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyAG committed Mar 13, 2024
1 parent 4c8a6d8 commit ee2ee57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BunnymodXT/modules/HwDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8092,7 +8092,8 @@ HOOK_DEF_1(HwDLL, void, __cdecl, LoadThisDll, const char*, szDllFilename)
#endif

EngineDevMsg("[hw dll] Old path to game library: %s\n", szDllFilename);
szDllFilename = helper_functions::swap_lib(szDllFilename, cs_lib, "addons").c_str();
const char *swap_lib_output = helper_functions::swap_lib(szDllFilename, cs_lib, "addons").c_str();
szDllFilename = swap_lib_output;
EngineDevMsg("[hw dll] New path to game library: %s\n", szDllFilename);

if (!strcmp(szDllFilename, oldszDllFilename))
Expand Down

0 comments on commit ee2ee57

Please sign in to comment.