Jump to content

Exception crash when opening a railing model


Recommended Posts

It actually happens with any non-animated model. Here's the code that causes it. Can anyone guess why?:

    std::string Entity::GetAnimationName(const int index)
   {
       if (index<0 || index>animationname.size() - 1) return "";
       return animationname[index];// crashes here, even though index is zero!
   }

 

 

 

Answer: size() returns an unsigned integer. ;)

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...