mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 17:05:37 +00:00
CGameArea: Make use of size_t where applicable
Plays nicer with the standard library and avoids truncation warnings.
This commit is contained in:
@@ -76,7 +76,7 @@ void WCreateTab::OnLayersChanged()
|
||||
ui->SpawnLayerComboBox->blockSignals(true);
|
||||
ui->SpawnLayerComboBox->clear();
|
||||
|
||||
for (uint32 iLyr = 0; iLyr < pArea->NumScriptLayers(); iLyr++)
|
||||
for (size_t iLyr = 0; iLyr < pArea->NumScriptLayers(); iLyr++)
|
||||
ui->SpawnLayerComboBox->addItem(TO_QSTRING(pArea->ScriptLayer(iLyr)->Name()));
|
||||
|
||||
ui->SpawnLayerComboBox->setCurrentIndex(0);
|
||||
@@ -88,5 +88,5 @@ void WCreateTab::OnLayersChanged()
|
||||
void WCreateTab::OnSpawnLayerChanged(int LayerIndex)
|
||||
{
|
||||
CGameArea *pArea = mpEditor->ActiveArea();
|
||||
mpSpawnLayer = pArea->ScriptLayer(LayerIndex);
|
||||
mpSpawnLayer = pArea->ScriptLayer(static_cast<size_t>(LayerIndex));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user