Sync src/battle_util.c with pokeemerald

This commit is contained in:
Eduardo Quezada
2022-08-07 22:37:10 -04:00
parent 25344d1bbd
commit ac973aa38d
59 changed files with 1774 additions and 1587 deletions
+2 -2
View File
@@ -2811,7 +2811,7 @@ class Renderer {
if ((bc.flags & Bytecode::Flag::ValueMask) != Bytecode::Flag::ValuePop) {
popArgs -= 1;
}
for (unsigned int i = 0; i < popArgs; ++i) {
for (unsigned int i = 0; i < popArgs; i++) {
m_stack.pop_back();
}
}
@@ -2925,7 +2925,7 @@ class Renderer {
void render_to(std::ostream& os, const Template& tmpl, const json& data) {
m_data = &data;
for (size_t i = 0; i < tmpl.bytecodes.size(); ++i) {
for (size_t i = 0; i < tmpl.bytecodes.size(); i++) {
const auto& bc = tmpl.bytecodes[i];
switch (bc.op) {