Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Objects/lightprobeobject.cpp')
-rw-r--r--Source/Objects/lightprobeobject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Objects/lightprobeobject.cpp b/Source/Objects/lightprobeobject.cpp
index 506e13fa..ec92c70b 100644
--- a/Source/Objects/lightprobeobject.cpp
+++ b/Source/Objects/lightprobeobject.cpp
@@ -93,8 +93,7 @@ bool LightProbeObject::SetFromDesc( const EntityDescription& desc ) {
LOG_ASSERT(!stored_coefficients);
bool ret = Object::SetFromDesc(desc);
if( ret ) {
- for(unsigned i=0; i<desc.fields.size(); ++i){
- const EntityDescriptionField& field = desc.fields[i];
+ for(const auto & field : desc.fields){
switch(field.type){
case EDF_NEGATIVE_LIGHT_PROBE: {
int negative_int;