Fix compilation errors.

This commit is contained in:
Artyom Shalkhakov 2025-02-06 08:48:43 -07:00
parent 9f217c9c81
commit 314a8e1904
2 changed files with 3 additions and 4 deletions

View file

@ -86,10 +86,10 @@ ParticleEditor& ParticleEditor::Instance()
}
ParticleEditor::ParticleEditor()
: colorDlg( "Color" )
: fileSelection(0)
, colorDlg( "Color" )
, fadeColorDlg( "Fade Color" )
, entityColorDlg( "Entity Color" )
, fileSelection(0)
, materialDeclSelection(0)
, shouldPopulate(false)
{
@ -1185,7 +1185,7 @@ idParticleStage *ParticleEditor::GetCurStage() {
idDeclParticle *idp = GetCurParticle();
int sel = listStagesSel;
int index = listStagesItemData.First( sel );
if ( idp == NULL || sel == LB_ERR || index >= idp->stages.Num() ) {
if ( idp == NULL || sel == -1 || index >= idp->stages.Num() ) {
return NULL;
}
return idp->stages[index];

View file

@ -135,7 +135,6 @@ protected:
void OnBtnZup();
void OnBtnZdn();
void OnBtnDrop();
//void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
private:
bool isShown;