<p>So the root cause of this bug was the <code>+ 1</code> in the line<br>
<code>recindex = gen(genMaxEnemy) + 1</code><br>
in <code>enemy_editor</code>; ditto for attacks.<br>
And apparently that bug was actually there since r8949 (July 2017, Dwimmercraft), which added the ability to jump between different editors. However, I think it could only be triggered by pressing Insert or + in another editor to add a new enemy/attack. When in Fufluns nightlies the Attack and Enemy thingbrowsers were added, which featured the +New button, also triggering this bug and making it easier to encounter.</p>
<p>For the purposes of sifting through old debug log error messages, note that this caused a "loadrecord: record # is off the end of" message when you added an enemy/attack, and a "rpgfix:Adjusting record count for Enemies/Attacks lump" message when you launched Custom next time.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/17?email_source=notifications&email_token=AMWGWZXAHIEYCITCUAEUFT3QDJVURA5CNFSM4H7IK3VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XMFJY#issuecomment-518963879">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZQTF2746RESFIVOUIDQDJVURANCNFSM4H7IK3VA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AMWGWZRUAWECNNFK6JHD6PLQDJVURA5CNFSM4H7IK3VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XMFJY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/17?email_source=notifications\u0026email_token=AMWGWZXAHIEYCITCUAEUFT3QDJVURA5CNFSM4H7IK3VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XMFJY#issuecomment-518963879",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/17?email_source=notifications\u0026email_token=AMWGWZXAHIEYCITCUAEUFT3QDJVURA5CNFSM4H7IK3VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XMFJY#issuecomment-518963879",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>