Changeset 8975 for issm/trunk


Ignore:
Timestamp:
07/14/11 07:42:41 (14 years ago)
Author:
Mathieu Morlighem
Message:

Fixed one segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r8967 r8975  
    41394139
    41404140                        if (code==5){ //boolean
    4141                                 this->inputs->AddInput(new BoolInput(vector_enum,(bool)vector[i]));
     4141                                this->inputs->AddInput(new BoolInput(vector_enum,(bool)vector[index]));
    41424142                        }
    41434143                        else if (code==6){ //integer
    4144                                 this->inputs->AddInput(new IntInput(vector_enum,(int)vector[i]));
     4144                                this->inputs->AddInput(new IntInput(vector_enum,(int)vector[index]));
    41454145                        }
    41464146                        else if (code==7){ //double
    4147                                 this->inputs->AddInput(new DoubleInput(vector_enum,(double)vector[i]));
     4147                                this->inputs->AddInput(new DoubleInput(vector_enum,(double)vector[index]));
    41484148                        }
    41494149                        else _error_("%s%i"," could not recognize nature of vector from code ",code);
Note: See TracChangeset for help on using the changeset viewer.