Fix crash when changing dimensions in certain API callbacks

This commit is contained in:
GriffinR
2025-08-06 16:41:31 -04:00
parent bc9fbe6e72
commit 5da0655a15
3 changed files with 19 additions and 6 deletions

View File

@@ -59,6 +59,7 @@ public:
// Scripting API
Q_INVOKABLE QJSValue getBlock(int x, int y);
void tryRedrawMapArea(bool forceRedraw);
void redrawResizedMapArea();
void tryCommitMapChanges(bool commitChanges);
Q_INVOKABLE void setBlock(int x, int y, int metatileId, int collision, int elevation, bool forceRedraw = true, bool commitChanges = true);
Q_INVOKABLE void setBlock(int x, int y, int rawValue, bool forceRedraw = true, bool commitChanges = true);