summaryrefslogtreecommitdiff
path: root/src/mystery_event_script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mystery_event_script.c')
-rw-r--r--src/mystery_event_script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mystery_event_script.c b/src/mystery_event_script.c
index 86e7217ef..8822cd05a 100644
--- a/src/mystery_event_script.c
+++ b/src/mystery_event_script.c
@@ -86,8 +86,8 @@ u32 RunMysteryEventScript(u8 *script)
{
struct ScriptContext *ctx = &sMysteryEventScriptContext;
InitMysteryEventScript(ctx, script);
- while (RunMysteryEventScriptCommand(ctx))
- ;
+ while (RunMysteryEventScriptCommand(ctx));
+
return ctx->data[2];
}
@@ -208,7 +208,7 @@ bool8 MEScrCmd_setmsg(struct ScriptContext *ctx)
{
u8 value = ScriptReadByte(ctx);
u8 *str = (u8 *)(ScriptReadWord(ctx) - ctx->data[1] + ctx->data[0]);
- if (value == 255 || value == ctx->data[2])
+ if (value == 0xFF || value == ctx->data[2])
StringExpandPlaceholders(gStringVar4, str);
return FALSE;
}