mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-10 22:02:37 +02:00
Fix typo in CowData's fill(). This fixes the issues with WaveFormCollapse.
This commit is contained in:
parent
c7ee453e8a
commit
dee3f6b05b
@ -168,7 +168,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
resize(len - 1);
|
resize(len - 1);
|
||||||
};
|
}
|
||||||
|
|
||||||
Error insert(int p_pos, const T &p_val) {
|
Error insert(int p_pos, const T &p_val) {
|
||||||
ERR_FAIL_INDEX_V(p_pos, size() + 1, ERR_INVALID_PARAMETER);
|
ERR_FAIL_INDEX_V(p_pos, size() + 1, ERR_INVALID_PARAMETER);
|
||||||
@ -179,7 +179,7 @@ public:
|
|||||||
set(p_pos, p_val);
|
set(p_pos, p_val);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
};
|
}
|
||||||
|
|
||||||
void fill(const T &p_val) {
|
void fill(const T &p_val) {
|
||||||
int len = size();
|
int len = size();
|
||||||
@ -189,10 +189,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
T *p = ptrw();
|
T *p = ptrw();
|
||||||
for (int i = 0; i > len; ++i) {
|
for (int i = 0; i < len; ++i) {
|
||||||
p[i] = p_val;
|
p[i] = p_val;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
int find(const T &p_val, int p_from = 0) const;
|
int find(const T &p_val, int p_from = 0) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user