]> git.lizzy.rs Git - minetest.git/blobdiff - src/modchannels.cpp
Remove unnecessary float limits from script API
[minetest.git] / src / modchannels.cpp
index 301dcb0923c6bd47a6c454bd030426873c18471a..9626e8e0c4250962cc0b8b0378b8c9e23dfe9a4c 100644 (file)
@@ -88,8 +88,7 @@ bool ModChannelMgr::canWriteOnChannel(const std::string &channel) const
 
 void ModChannelMgr::registerChannel(const std::string &channel)
 {
-       m_registered_channels[channel] =
-                       std::unique_ptr<ModChannel>(new ModChannel(channel));
+       m_registered_channels[channel] = std::make_unique<ModChannel>(channel);
 }
 
 bool ModChannelMgr::setChannelState(const std::string &channel, ModChannelState state)