tophat2d / tophat

:tophat: a 2d game library for Umka

Home Page:https://tophat2d.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playground crashes after a compile error

vtereshkov opened this issue · comments

error: /playground_main.um (17, 24): Invalid character literal
status: Exception thrown, see JavaScript console
Uncaught RuntimeError: memory access out of bounds

It can be fixed by replacing

if (thg->umth_frame_callback != -1)

with

if (thg->umka && umkaAlive(thg->umka) && thg->umth_frame_callback != -1)

in frame().