Ignored species shiny/form bits in ScrCmd_bufferspeciesname.
This commit is contained in:
parent
23782c16f7
commit
acfd11bb21
@ -1589,7 +1589,7 @@ bool8 ScrCmd_vmessage(struct ScriptContext *ctx)
|
||||
bool8 ScrCmd_bufferspeciesname(struct ScriptContext *ctx)
|
||||
{
|
||||
u8 stringVarIndex = ScriptReadByte(ctx);
|
||||
u16 species = VarGet(ScriptReadHalfword(ctx));
|
||||
u16 species = VarGet(ScriptReadHalfword(ctx)) & ((1 << 10) - 1); // ignore possible shiny / form bits
|
||||
|
||||
StringCopy(sScriptStringVars[stringVarIndex], gSpeciesNames[species]);
|
||||
return FALSE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user