IRRLoader: Fix confusing boolean casting

pull/1498/head
Turo Lamminen 2017-11-07 19:11:08 +02:00
parent 437816fc33
commit a276a02726
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ void IRRImporter::ComputeAnimations(Node* root, aiNode* real, std::vector<aiNode
angles[1] %= 360;
angles[2] %= 360;
if ( bool(angles[0]*angles[1]) && bool(angles[1]*angles[2]) )
if ( (angles[0]*angles[1]) != 0 && (angles[1]*angles[2]) != 0 )
{
FindSuitableMultiple(angles[0]);
FindSuitableMultiple(angles[1]);