mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 21:26:32 +02:00
fix warning
This commit is contained in:
parent
4497302a2b
commit
c96e395a46
1 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ void EntityEditFilters::scriptRequestFinished(EntityItemID entityID) {
|
|||
}
|
||||
} else if (wantsOriginalPropertiesValue.isArray()) {
|
||||
auto length = wantsOriginalPropertiesValue.property("length").toInteger();
|
||||
for (int i; i < length; i++) {
|
||||
for (int i = 0; i < length; i++) {
|
||||
auto stringValue = wantsOriginalPropertiesValue.property(i).toString();
|
||||
if (!stringValue.isEmpty()) {
|
||||
filterData.wantsOriginalProperties = true;
|
||||
|
@ -305,7 +305,7 @@ void EntityEditFilters::scriptRequestFinished(EntityItemID entityID) {
|
|||
}
|
||||
} else if (wantsZonePropertiesValue.isArray()) {
|
||||
auto length = wantsZonePropertiesValue.property("length").toInteger();
|
||||
for (int i; i < length; i++) {
|
||||
for (int i = 0; i < length; i++) {
|
||||
auto stringValue = wantsZonePropertiesValue.property(i).toString();
|
||||
if (!stringValue.isEmpty()) {
|
||||
filterData.wantsZoneProperties = true;
|
||||
|
|
Loading…
Reference in a new issue