mirror of https://github.com/axmolengine/axmol.git
more warnings fixed
This commit is contained in:
parent
db8dc25b01
commit
f3e4c705eb
|
@ -1272,7 +1272,7 @@ void Sprite3DWithOBBPerfromanceTest::onTouchesBegan(const std::vector<Touch*>& t
|
|||
{
|
||||
if(ray.intersects(_obb[i]))
|
||||
{
|
||||
_intersetList.insert(i);
|
||||
_intersetList.insert((int)i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1294,7 +1294,7 @@ void Sprite3DWithOBBPerfromanceTest::onTouchesMoved(const std::vector<Touch*>& t
|
|||
|
||||
for(decltype(obbSize) i = 0; i < obbSize; i++)
|
||||
{
|
||||
if(_intersetList.find(i) != _intersetList.end())
|
||||
if(_intersetList.find((int)i) != _intersetList.end())
|
||||
_obb[i]._center = Vec3(location.x,location.y,0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue