Merge branch 'romhack' into lighting
This commit is contained in:
commit
68497d81ce
1 changed files with 1 additions and 1 deletions
|
@ -1589,7 +1589,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));
|
u16 species = VarGet(ScriptReadHalfword(ctx)) & ((1 << 10) - 1); // ignore possible shiny / form bits
|
||||||
|
|
||||||
StringCopy(sScriptStringVars[stringVarIndex], gSpeciesNames[species]);
|
StringCopy(sScriptStringVars[stringVarIndex], gSpeciesNames[species]);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue