mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:39:26 +02:00
fix warning on windows about signed conversion of unsigned int
This commit is contained in:
parent
32400a6baf
commit
027a9d34d4
1 changed files with 2 additions and 2 deletions
|
@ -855,8 +855,8 @@ void PhysicsEngine::addContactAddedCallback(PhysicsEngine::ContactAddedCallback
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsEngine::removeContactAddedCallback(PhysicsEngine::ContactAddedCallback cb) {
|
void PhysicsEngine::removeContactAddedCallback(PhysicsEngine::ContactAddedCallback cb) {
|
||||||
uint32_t numCallbacks = _contactAddedCallbacks.size();
|
int32_t numCallbacks = _contactAddedCallbacks.size();
|
||||||
for (uint32_t i = 0; i < numCallbacks; ++i) {
|
for (int32_t i = 0; i < numCallbacks; ++i) {
|
||||||
if (_contactAddedCallbacks[i] == cb) {
|
if (_contactAddedCallbacks[i] == cb) {
|
||||||
// found it --> remove it
|
// found it --> remove it
|
||||||
_contactAddedCallbacks[i] = _contactAddedCallbacks[numCallbacks - 1];
|
_contactAddedCallbacks[i] = _contactAddedCallbacks[numCallbacks - 1];
|
||||||
|
|
Loading…
Reference in a new issue