summaryrefslogtreecommitdiff
path: root/src/scrcmd.c
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-10-15 16:30:27 -0500
committerGitHub <noreply@github.com>2019-10-15 16:30:27 -0500
commita0b3f5d9e34e65c1948325bd4177a734bfde6bb4 (patch)
treeedd30aaf0011fa31b0dd75fee2a670b2215390e2 /src/scrcmd.c
parent07ac727c6d0c54d5d0f9f2a1f4c11b81f9d64cb4 (diff)
parent928cdf2531e74df2432ec8d602c4c2d2fee14eb1 (diff)
Merge pull request #833 from GriffinRichards/doc-inc2
Document .incs split from event_scripts Round 2
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r--src/scrcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c
index 8ddd23d6d..efff17722 100644
--- a/src/scrcmd.c
+++ b/src/scrcmd.c
@@ -1930,9 +1930,9 @@ bool8 ScrCmd_setberrytree(struct ScriptContext *ctx)
bool8 ScrCmd_getpricereduction(struct ScriptContext *ctx)
{
- u16 value = VarGet(ScriptReadHalfword(ctx));
+ u16 newsKind = VarGet(ScriptReadHalfword(ctx));
- gSpecialVar_Result = GetPriceReduction(value);
+ gSpecialVar_Result = GetPriceReduction(newsKind);
return FALSE;
}