aboutsummaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.c b/src/env.c
index 05cb0de..3b4ea11 100644
--- a/src/env.c
+++ b/src/env.c
@@ -95,7 +95,7 @@ bool pw_env_link(struct w2c_env *env, struct pw_env_ctx context) {
if (env->memory.size < ENV_MIN_PAGES * wasm2c_pico8_pagesize_env_memory) {
return SDL_SetError("cannot write to fixed memory offsets");
}
- if (!context.fb || !context.input || !context.carts || !context.instance) {
+ if (!context.fb || !context.input || !context.cartdat || !context.instance) {
return SDL_InvalidParamError("context");
}