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/decalobject.cpp')
-rw-r--r--Source/Objects/decalobject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Objects/decalobject.cpp b/Source/Objects/decalobject.cpp
index 256aedac..9f9f2190 100644
--- a/Source/Objects/decalobject.cpp
+++ b/Source/Objects/decalobject.cpp
@@ -143,8 +143,7 @@ void DecalObject::GetDesc(EntityDescription &desc) const {
bool DecalObject::SetFromDesc( const EntityDescription& desc ) {
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_FILE_PATH: {
std::string type_file;