mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-25 04:35:17 +00:00
Client: Don't erroneously log some errors
This commit is contained in:
parent
90f09a8340
commit
71b4237d84
1 changed files with 4 additions and 4 deletions
|
@ -783,19 +783,19 @@ void Client::updatePlayerInfo(PlayerInf *packet) {
|
|||
|
||||
if (packet->actName != PlayerAnims::Type::Unknown) {
|
||||
strcpy(curInfo->curAnimStr, PlayerAnims::FindStr(packet->actName));
|
||||
if (curInfo->curAnimStr[0] == '\0')
|
||||
Logger::log("[ERROR] %s: actName was out of bounds: %d\n", __func__, packet->actName);
|
||||
} else {
|
||||
strcpy(curInfo->curAnimStr, "Wait");
|
||||
}
|
||||
if (strlen(curInfo->curAnimStr) == 0)
|
||||
Logger::log("[ERROR] %s: actName was out of bounds: %d", __func__, packet->actName);
|
||||
|
||||
if(packet->subActName != PlayerAnims::Type::Unknown) {
|
||||
strcpy(curInfo->curSubAnimStr, PlayerAnims::FindStr(packet->subActName));
|
||||
if (curInfo->curSubAnimStr[0] == '\0')
|
||||
Logger::log("[ERROR] %s: subActName was out of bounds: %d\n", __func__, packet->subActName);
|
||||
} else {
|
||||
strcpy(curInfo->curSubAnimStr, "");
|
||||
}
|
||||
if (strlen(curInfo->curSubAnimStr) == 0)
|
||||
Logger::log("[ERROR] %s: subActName was out of bounds: %d", __func__, packet->subActName);
|
||||
|
||||
curInfo->curAnim = packet->actName;
|
||||
curInfo->curSubAnim = packet->subActName;
|
||||
|
|
Loading…
Reference in a new issue