diff options
| author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 15:18:13 +0200 |
|---|---|---|
| committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 15:18:13 +0200 |
| commit | b12eef1d56575206538abed426a296fefe22e90e (patch) | |
| tree | a029f5ec513ec487d477d791e21f90ae1287965a /src/weapons/WeaponInfo.cpp | |
| parent | Fix debug menu memory leak (diff) | |
| download | re3-b12eef1d56575206538abed426a296fefe22e90e.tar.gz | |
Fix use of strncmp
Diffstat (limited to 'src/weapons/WeaponInfo.cpp')
| -rw-r--r-- | src/weapons/WeaponInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/WeaponInfo.cpp b/src/weapons/WeaponInfo.cpp index 284a0c20..69d2faed 100644 --- a/src/weapons/WeaponInfo.cpp +++ b/src/weapons/WeaponInfo.cpp @@ -136,7 +136,7 @@ CWeaponInfo::LoadWeaponData(void) animAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, animToPlay); animId = static_cast<AnimationId>(animAssoc->animId); - if (strncmp(anim2ToPlay, "null", 4) != 0) { + if (strcmp(anim2ToPlay, "null") != 0) { animAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, anim2ToPlay); ms_apWeaponInfos[weaponType].m_Anim2ToPlay = (AnimationId) animAssoc->animId; } |
