use OBJ_EVENT_GFX_SPECIES_MASK
in bufferspeciesname
(#5088)
Co-authored-by: sbird <sbird@no.tld>
This commit is contained in:
parent
fd3cb6f96b
commit
1f93c25611
1 changed files with 1 additions and 1 deletions
|
@ -1693,7 +1693,7 @@ bool8 ScrCmd_vmessage(struct ScriptContext *ctx)
|
||||||
bool8 ScrCmd_bufferspeciesname(struct ScriptContext *ctx)
|
bool8 ScrCmd_bufferspeciesname(struct ScriptContext *ctx)
|
||||||
{
|
{
|
||||||
u8 stringVarIndex = ScriptReadByte(ctx);
|
u8 stringVarIndex = ScriptReadByte(ctx);
|
||||||
u16 species = VarGet(ScriptReadHalfword(ctx)) & ((1 << 10) - 1); // ignore possible shiny / form bits
|
u16 species = VarGet(ScriptReadHalfword(ctx)) & OBJ_EVENT_GFX_SPECIES_MASK; // ignore possible shiny / form bits
|
||||||
|
|
||||||
StringCopy(sScriptStringVars[stringVarIndex], GetSpeciesName(species));
|
StringCopy(sScriptStringVars[stringVarIndex], GetSpeciesName(species));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue