Fixes and tweaks

This commit is contained in:
Wojtek Figat
2021-05-03 19:25:03 +02:00
parent 4e94c7c88c
commit c4c1655f76
2 changed files with 5 additions and 6 deletions

View File

@@ -758,7 +758,6 @@ public:
/// <summary>
/// Performs pop from stack operation (stack grows at the end of the collection).
/// </summary>
/// <returns>The item.</returns>
T Pop()
{
T item(Last());
@@ -769,19 +768,19 @@ public:
/// <summary>
/// Peeks items which is at the top of the stack (stack grows at the end of the collection).
/// </summary>
/// <returns>The item.</returns>
FORCE_INLINE T& Peek()
{
return Last();
ASSERT(_count > 0);
return Get()[_count - 1];
}
/// <summary>
/// Peeks items which is at the top of the stack (stack grows at the end of the collection).
/// </summary>
/// <returns>The item.</returns>
FORCE_INLINE const T& Peek() const
{
return Last();
ASSERT(_count > 0);
return Get()[_count - 1];
}
public:

View File

@@ -638,9 +638,9 @@ void Physics::Simulate(float dt)
void Physics::CollectResults()
{
ASSERT(IsInMainThread());
if (!_isDuringSimulation)
return;
ASSERT(IsInMainThread());
ASSERT(CPhysX && Stepper);
{