Minor update - ui x physix
This commit is contained in:
@@ -30,7 +30,7 @@ void Physics::SetGravity(XMVECTOR gravity)
|
||||
// Apply gravity to an object
|
||||
void Physics::ApplyGravity(Object* object, float dragValue)
|
||||
{
|
||||
if (object == nullptr) // Verify if the object is not null
|
||||
if (this == nullptr || object == nullptr) // Verify if 'this' and 'object' are not null
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user