You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
- If index is <0 it will crash because of UniformInfo[index].
porcus - do you THINK it will crash or HAS it crashed?
Nadro is right - with an OR if the first is "true" the rest can be skipped (Konjunction).
Same with an AND: if the first is "false" the rest can be skipped (Disjunction).
Nevertheless - "if( ... index >= (int)UniformInfo.size() )" maybe also should be checked
for safety. Only god or Nadro know.
It has crashed because of this issue. I compiled it with GCC with debug symbols and identified the Problem with gdb. BTW: You can not know if every compiler with every settings does evaluate the disjunctions as you describe.
@porcus, if the index passed is causing problems then it is set to a wrong value (and hence the crash is caused by the range guard on std::vector).
you have to track wich code is setting it to wrong value or just create a small program that reproduce that.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me