Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Fixed] Function calls don't recognize the caller

A topic by cannot_think created Mar 11, 2024 Views: 195 Replies: 2
Viewing posts 1 to 3
(2 edits)

After upgrading to GM 2024.2, any function() calls inside live code don't use the caller object.

For example, if a function uses object_index, it will throw "Variable <unknown_object>.object_index not set before reading it.", even though I'm running it inside an object event.

Doing "method(self, func)` forces them to work.

Developer(+2)

That’s caused by the same GM bug/behaviour change as explained in the other topic

I’m hoping to have a fix out later this week.

Calling "event inherited()" seems to be a guaranteed crash for me - I guess this is the same issue