Skip to content

Commit

Permalink
fix comp err
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 19, 2024
1 parent 85017b5 commit 4b4460f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugins/BulletPhysics/physics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ ragdoll_config_t *CPhysicsManager::LoadRagdollConfig(model_t *mod)
auto name = fullname.substr(0, fullname.length() - 4);
name += "_ragdoll.txt";

char *pfile = (char *)gEngfuncs.COM_LoadFile((char *)name.c_str(), 5, NULL);
auto pfile = (const char *)gEngfuncs.COM_LoadFile(name.c_str(), 5, NULL);
if (!pfile)
{
cfg->state = 2;
Expand All @@ -1584,7 +1584,7 @@ ragdoll_config_t *CPhysicsManager::LoadRagdollConfig(model_t *mod)

int iParsingState = -1;

char *ptext = pfile;
auto ptext = pfile;
while (1)
{
char text[256] = { 0 };
Expand Down Expand Up @@ -2172,7 +2172,7 @@ ragdoll_config_t *CPhysicsManager::LoadRagdollConfig(model_t *mod)
}
}

gEngfuncs.COM_FreeFile(pfile);
gEngfuncs.COM_FreeFile((void *)pfile);

return cfg;
}
Expand Down

0 comments on commit 4b4460f

Please sign in to comment.