mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
ActiveObjectMgr fixes (#13560)
This commit is contained in:
parent
929a13a9a0
commit
11ec75c2ad
17 changed files with 204 additions and 153 deletions
|
@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "itemgroup.h"
|
||||
#include "constants.h"
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
|
||||
class Camera;
|
||||
class Client;
|
||||
|
@ -139,9 +140,9 @@ public:
|
|||
|
||||
~GenericCAO();
|
||||
|
||||
static ClientActiveObject* create(Client *client, ClientEnvironment *env)
|
||||
static std::unique_ptr<ClientActiveObject> create(Client *client, ClientEnvironment *env)
|
||||
{
|
||||
return new GenericCAO(client, env);
|
||||
return std::make_unique<GenericCAO>(client, env);
|
||||
}
|
||||
|
||||
inline ActiveObjectType getType() const override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue