Fix irrlicht error indent (#4676)

This commit is contained in:
Varro33 2021-11-22 14:49:15 +01:00 committed by GitHub
parent 38425305a5
commit 6b022368cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 12 deletions

View File

@ -611,8 +611,8 @@ u32 CGUIListBox::addItem(const wchar_t* text, s32 icon)
void CGUIListBox::setSpriteBank(IGUISpriteBank* bank)
{
if ( bank == IconBank )
return;
if ( bank == IconBank )
return;
if (IconBank)
IconBank->drop();

View File

@ -40,8 +40,8 @@ CGUIMeshViewer::~CGUIMeshViewer()
//! sets the mesh to be shown
void CGUIMeshViewer::setMesh(scene::IAnimatedMesh* mesh)
{
if (mesh)
mesh->grab();
if (mesh)
mesh->grab();
if (Mesh)
Mesh->drop();

View File

@ -1055,8 +1055,8 @@ void CGUITreeView::setIconFont( IGUIFont* font )
{
s32 height;
if ( font )
font->grab();
if ( font )
font->grab();
if ( IconFont )
{
IconFont->drop();
@ -1077,8 +1077,8 @@ void CGUITreeView::setIconFont( IGUIFont* font )
//! The default is 0 (no images).
void CGUITreeView::setImageList( IGUIImageList* imageList )
{
if (imageList )
imageList->grab();
if (imageList )
imageList->grab();
if( ImageList )
{
ImageList->drop();

View File

@ -327,8 +327,8 @@ IRandomizer* CIrrDeviceStub::createDefaultRandomizer() const
//! Sets the input receiving scene manager.
void CIrrDeviceStub::setInputReceivingSceneManager(scene::ISceneManager* sceneManager)
{
if (sceneManager)
sceneManager->grab();
if (sceneManager)
sceneManager->grab();
if (InputReceivingSceneManager)
InputReceivingSceneManager->drop();

View File

@ -72,8 +72,8 @@ IParticleEmitter* CParticleSystemSceneNode::getEmitter()
//! Sets the particle emitter, which creates the particles.
void CParticleSystemSceneNode::setEmitter(IParticleEmitter* emitter)
{
if (emitter == Emitter)
return;
if (emitter == Emitter)
return;
if (Emitter)
Emitter->drop();