mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-20 11:35:21 +02:00
Replace _IRR_DEBUG_BREAK_IF
with assertions
This commit is contained in:
committed by
Lars Müller
parent
2f464843cb
commit
5f1ff453c9
@@ -3,6 +3,7 @@
|
||||
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include "CSceneManager.h"
|
||||
#include "IVideoDriver.h"
|
||||
@@ -305,7 +306,7 @@ void CSceneManager::render()
|
||||
//! returns the axis aligned bounding box of this node
|
||||
const core::aabbox3d<f32> &CSceneManager::getBoundingBox() const
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(true) // Bounding Box of Scene Manager should never be used.
|
||||
assert(false); // Bounding Box of Scene Manager should never be used.
|
||||
|
||||
static const core::aabbox3d<f32> dummy{{0.0f, 0.0f, 0.0f}};
|
||||
return dummy;
|
||||
|
Reference in New Issue
Block a user