Fix use of strncmp

This commit is contained in:
Sergeanur
2020-12-25 15:18:48 +02:00
parent dc72729a40
commit e00b8a93bf
10 changed files with 80 additions and 66 deletions

View File

@@ -2393,8 +2393,8 @@ CPed::LoadFightData(void)
break;
}
if (strncmp(animName, "default", 8) != 0) {
if (strncmp(animName, "null", 5) != 0) {
if (strcmp(animName, "default") != 0) {
if (strcmp(animName, "null") != 0) {
animAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, animName);
tFightMoves[moveId].animId = (AnimationId)animAssoc->animId;
} else {