summaryrefslogtreecommitdiff
path: root/src/game-server/trigger.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/trigger.hpp')
-rw-r--r--src/game-server/trigger.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/trigger.hpp b/src/game-server/trigger.hpp
index c134263a..d99fb769 100644
--- a/src/game-server/trigger.hpp
+++ b/src/game-server/trigger.hpp
@@ -51,7 +51,7 @@ class WarpAction : public TriggerAction
class ScriptAction : public TriggerAction
{
public:
- ScriptAction(Script *script, std::string function, int arg)
+ ScriptAction(Script *script, const std::string &function, int arg)
: mScript(script), mFunction(function), mArg(arg) {}
virtual void process(Actor *obj);
@@ -68,7 +68,7 @@ class TriggerArea : public Thing
/**
* Creates a rectangular trigger for a given map.
*/
- TriggerArea(MapComposite *m, Rectangle const &r, TriggerAction *ptr, bool once)
+ TriggerArea(MapComposite *m, const Rectangle &r, TriggerAction *ptr, bool once)
: Thing(OBJECT_OTHER, m), mZone(r), mAction(ptr), mOnce(once) {}
virtual void update();