Battle commands with 'Enemy HP' trigger crash the game #367

Closed
rohkea opened this Issue Nov 24, 2014 · 2 comments

Projects

None yet

3 participants

@rohkea
Member
rohkea commented Nov 24, 2014

Having a battle commands triggered with 'Enemy HP is ...' causes the player to exit immediately, with the following error message:

easyrpg-player: game_enemyparty.cpp:30: virtual Game_Enemy& Game_EnemyParty::operator: Assertion `false && "Subscript out of range"' failed.

Here is a minimal test project: http://ablog.site90.com/fun/BattleFailExample.zip

This affects Legion Saga (the fight with Mr Yuto).

@rohkea rohkea changed the title from Battle commands with 'Enemy HP' crash the game to Battle commands with 'Enemy HP' trigger crash the game Nov 24, 2014
@fdelapena fdelapena added Crash Battle Events and removed Battle labels Nov 24, 2014
@Zegeri
Member
Zegeri commented Nov 30, 2014

4a40dfb should fix this.

@rohkea
Member
rohkea commented Nov 30, 2014

Thanks, this patch works!

The battle with Mr Yuto in Legion Saga still has problems because 'Stop Battle' command is missing, but at least it’s no longer crashing.

@Zegeri Zegeri referenced this issue Dec 28, 2014
Merged

Fix some bugs #385

@fdelapena fdelapena added this to the 0.3 milestone Jan 2, 2015
@fdelapena fdelapena closed this in #385 Jan 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment