Fixed SHRawAnimInspector warnings

This commit is contained in:
Kah Wei 2023-03-02 17:44:28 +08:00
parent 6779f48b5a
commit 69fa0d4da0
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ namespace SHADE
SHEditorUI::PopID();
// Invalid values
const bool INVALID_CONFIG = newAssetName.empty() || firstIndex > lastIndex || lastIndex < firstIndex;
const bool INVALID_CONFIG = newAssetName.empty() || firstIndex > lastIndex;
// Buttons
ImGui::BeginDisabled(INVALID_CONFIG);

View File

@ -43,8 +43,8 @@ namespace SHADE
/* Data Members */
/*---------------------------------------------------------------------------------*/
std::string newAssetName;
int firstIndex;
int lastIndex;
int firstIndex = 0;
int lastIndex = 0;
Handle<SHRawAnimation> rawAnimation;
};