mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-18 12:55:25 +01:00
Fix some warnings (#12615)
This commit is contained in:
@@ -846,7 +846,6 @@ private:
|
||||
|
||||
EventManager *eventmgr = nullptr;
|
||||
QuicktuneShortcutter *quicktune = nullptr;
|
||||
bool registration_confirmation_shown = false;
|
||||
|
||||
std::unique_ptr<GameUI> m_game_ui;
|
||||
GUIChatConsole *gui_chat_console = nullptr; // Free using ->Drop()
|
||||
|
||||
@@ -1174,7 +1174,7 @@ void PartialMeshBuffer::beforeDraw() const
|
||||
void PartialMeshBuffer::afterDraw() const
|
||||
{
|
||||
// Take the data back
|
||||
m_vertex_indexes = std::move(m_buffer->Indices.steal());
|
||||
m_vertex_indexes = m_buffer->Indices.steal();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -39,7 +39,6 @@ struct ClientTexture
|
||||
video::ITexture *ref = nullptr;
|
||||
|
||||
ClientTexture() = default;
|
||||
ClientTexture(const ClientTexture&) = default;
|
||||
ClientTexture(const ServerParticleTexture& p, ITextureSource *t):
|
||||
tex(p),
|
||||
ref(t->getTextureForMesh(p.string)) {};
|
||||
@@ -52,7 +51,6 @@ struct ClientTexRef
|
||||
ParticleTexture* tex = nullptr;
|
||||
video::ITexture* ref = nullptr;
|
||||
ClientTexRef() = default;
|
||||
ClientTexRef(const ClientTexRef&) = default;
|
||||
|
||||
/* constructor used by particles spawned from a spawner */
|
||||
ClientTexRef(ClientTexture& t):
|
||||
|
||||
Reference in New Issue
Block a user