mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-08 08:07:10 +02:00
Various minor changes and fixes that were not pushed to the repository. Just random stuff.
This commit is contained in:
@@ -1422,7 +1422,7 @@ void Core::EmitClientScriptData(Int32 player_id, const uint8_t * data, size_t si
|
||||
// Remember the current stack size
|
||||
const StackGuard sg;
|
||||
// Create a protected instance of a buffer wrapper
|
||||
AutoDelete< SqBuffer > ad(new SqBuffer(std::move(b)));
|
||||
DeleteGuard< SqBuffer > ad(new SqBuffer(std::move(b)));
|
||||
// Transform the pointer into a script object
|
||||
PushVar< SqBuffer * >(DefaultVM::Get(), ad.Get());
|
||||
// The script took over the instance now
|
||||
|
@@ -1,5 +1,5 @@
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Areas.hpp"
|
||||
#include "Misc/Areas.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include <algorithm>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Command.hpp"
|
||||
#include "Misc/Command.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
@@ -161,7 +161,7 @@ Object Manager::Create(StackStrF & name, StackStrF & spec, Array & tags, Uint8 m
|
||||
// Create the command listener
|
||||
{
|
||||
// Create a new instance of this class and make sure it can't get leaked due to exceptions
|
||||
AutoDelete< Listener > ad(new Listener(name, spec, tags, min, max, auth, prot, assoc));
|
||||
DeleteGuard< Listener > ad(new Listener(name, spec, tags, min, max, auth, prot, assoc));
|
||||
// Transform the instance into a script object
|
||||
obj = Object(ad.Get());
|
||||
// Validate the obtained script object
|
||||
|
@@ -1,5 +1,5 @@
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Routine.hpp"
|
||||
#include "Misc/Routine.hpp"
|
||||
#include "Library/Chrono.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@@ -1,5 +1,5 @@
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Signal.hpp"
|
||||
#include "Misc/Signal.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
Reference in New Issue
Block a user