Skip to content

Commit

Permalink
🐛 Fixed namespace leak in TurboProp.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp authored and Petr Ohlídal committed Apr 9, 2022
1 parent fd3b771 commit 6752a76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/main/gfx/GfxActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ void RoR::GfxActor::SetWheelsVisible(bool value)
int RoR::GfxActor::GetActorId () const { return m_actor->ar_instance_id; }
int RoR::GfxActor::GetActorState () const { return static_cast<int>(m_actor->ar_state); }

ActorType RoR::GfxActor::GetActorDriveable() const
RoR::ActorType RoR::GfxActor::GetActorDriveable() const
{
return m_actor->ar_driveable;
}
Expand Down
4 changes: 3 additions & 1 deletion source/main/physics/air/TurboProp.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <Ogre.h>

using namespace RoR;
namespace RoR {

class Turboprop: public AeroEngine, public ZeroedMemoryAllocator
{
Expand Down Expand Up @@ -131,3 +131,5 @@ class Turboprop: public AeroEngine, public ZeroedMemoryAllocator
NodeNum_t nodep[4];
NodeNum_t torquenode;
};

} // namespace RoR

0 comments on commit 6752a76

Please # to comment.