Core: Some optimizations
- Declare some functions const - Fix some mem leak - Fix some resource leak - Remove unused variables and functions - Remove duplicate functions - Reduce the scope of some variables - Remove unused file --HG-- branch : trunk
This commit is contained in:
1 parent
e226c4ac34
commit
408fce1de6
73 files changed
+200
-712
No files matched your search
@@ -1121,10 +1121,10 @@ struct SmartScriptHolder
|
||||
SmartTarget target;
|
||||
|
||||
public:
|
||||
uint32 GetScriptType() { return (uint32)source_type; }
|
||||
uint32 GetEventType() { return (uint32)event.type; }
|
||||
uint32 GetActionType() { return (uint32)action.type; }
|
||||
uint32 GetTargetType() { return (uint32)target.type; }
|
||||
uint32 GetScriptType() const { return (uint32)source_type; }
|
||||
uint32 GetEventType() const { return (uint32)event.type; }
|
||||
uint32 GetActionType() const { return (uint32)action.type; }
|
||||
uint32 GetTargetType() const { return (uint32)target.type; }
|
||||
|
||||
uint32 timer;
|
||||
bool active;
|
||||
|
||||
Reference in new issue
Block a user