diff --git a/src/gl/textures/gl_texture.cpp b/src/gl/textures/gl_texture.cpp index e0b065a13..76477c738 100644 --- a/src/gl/textures/gl_texture.cpp +++ b/src/gl/textures/gl_texture.cpp @@ -842,7 +842,7 @@ void gl_PrecacheTexture(uint8_t *texhitlist, TMap &actorhitl PClassActor *cls = pair->Key; int gltrans = GLTranslationPalette::GetInternalTranslation(GetDefaultByType(cls)->Translation); - for (int i = 0; i < cls->GetStateCount(); i++) + for (unsigned i = 0; i < cls->GetStateCount(); i++) { auto &state = cls->GetStates()[i]; spritelist[state.sprite].Insert(gltrans, true); diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 7f59376e1..45c4d36d7 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -360,7 +360,7 @@ void DPSprite::SetState(FState *newstate, bool pending) { if (Caller->IsKindOf(NAME_Weapon)) { - Printf(TEXTCOLOR_RED "State %s.%d not flagged for use in weapons\n", FState::StaticGetStateName(newstate).GetChars()); + Printf(TEXTCOLOR_RED "State %s not flagged for use in weapons\n", FState::StaticGetStateName(newstate).GetChars()); State = nullptr; Destroy(); return;