summaryrefslogtreecommitdiff
path: root/src/spellbinder.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commitcbcc1ba9ddafd8c2480e1c647d4b7b5f630bb63e (patch)
treec61f5f66315c0f5618cf234dca59aa3403417de2 /src/spellbinder.hpp
parent2ec260320655504b88f8042d4b24e3e7910846a7 (diff)
Refactor spellbinder to use std::vector<>
Diffstat (limited to 'src/spellbinder.hpp')
-rw-r--r--src/spellbinder.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/spellbinder.hpp b/src/spellbinder.hpp
index 1f5cdd99..078d9eac 100644
--- a/src/spellbinder.hpp
+++ b/src/spellbinder.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "h-basic.h"
+#include <vector>
/**
* Spellbinder state
@@ -8,14 +9,9 @@
struct spellbinder {
/**
- * Number of bound spells.
- */
- byte num = 0;
-
- /**
* Bound spells.
*/
- u32b spells[4] = { 0 };
+ std::vector<u32b> spell_idxs;
/**
* Trigger condition.