mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01: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);
|
||||
};
|
||||
}
|
||||
|
||||
Error insert(int p_pos, const T &p_val) {
|
||||
ERR_FAIL_INDEX_V(p_pos, size() + 1, ERR_INVALID_PARAMETER);
|
||||
@ -179,7 +179,7 @@ public:
|
||||
set(p_pos, p_val);
|
||||
|
||||
return OK;
|
||||
};
|
||||
}
|
||||
|
||||
void fill(const T &p_val) {
|
||||
int len = size();
|
||||
@ -189,10 +189,10 @@ public:
|
||||
}
|
||||
|
||||
T *p = ptrw();
|
||||
for (int i = 0; i > len; ++i) {
|
||||
for (int i = 0; i < len; ++i) {
|
||||
p[i] = p_val;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
int find(const T &p_val, int p_from = 0) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user