diff --git a/src/common/menu/menudef.cpp b/src/common/menu/menudef.cpp index 640810858..da73517b0 100644 --- a/src/common/menu/menudef.cpp +++ b/src/common/menu/menudef.cpp @@ -769,8 +769,8 @@ static int GetInsertIndex(FScanner& sc, DMenuDescriptor* desc) // Find an existing menu item to use as insertion point sc.MustGetString(); - auto n = desc->mItems.Size(); - for (unsigned int i = 0; i < n; i++) + int n = desc->mItems.Size(); + for (int i = 0; i < n; i++) { auto item = desc->mItems[i]; diff --git a/src/playsim/p_pspr.cpp b/src/playsim/p_pspr.cpp index 826ab8e10..91a07d8ec 100644 --- a/src/playsim/p_pspr.cpp +++ b/src/playsim/p_pspr.cpp @@ -163,8 +163,11 @@ DEFINE_FIELD_BIT(DPSprite, Flags, bInterpolate, PSPF_INTERPOLATE) //------------------------------------------------------------------------ DPSprite::DPSprite(player_t *owner, AActor *caller, int id) -: x(.0), y(.0), +: HAlign(0), + VAlign(0), + x(.0), y(.0), oldx(.0), oldy(.0), + InterpolateTic(false), firstTic(true), Tics(0), Translation(0), @@ -175,10 +178,7 @@ DPSprite::DPSprite(player_t *owner, AActor *caller, int id) Sprite(0), Frame(0), ID(id), - processPending(true), - HAlign(0), - VAlign(0), - InterpolateTic(false) + processPending(true) { rotation = 0.; scale = {1.0, 1.0};