From 3e199af3536a473d3cc5dd3f97aa89fe9acd21f2 Mon Sep 17 00:00:00 2001 From: Kirill Saidov Date: Fri, 10 Sep 2021 11:12:37 +0600 Subject: [PATCH] changes --- lesson#26 - Drawing a player/ourGame/source/game/data.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesson#26 - Drawing a player/ourGame/source/game/data.d b/lesson#26 - Drawing a player/ourGame/source/game/data.d index 0faa423..7fa7ad8 100644 --- a/lesson#26 - Drawing a player/ourGame/source/game/data.d +++ b/lesson#26 - Drawing a player/ourGame/source/game/data.d @@ -26,7 +26,7 @@ class Entity { Rectangle frame; Vector2 position; - this(const Texture2D texture, const Rectangle frame, const Vector2 Position) { + this(const ref Texture2D texture, const Rectangle frame, const Vector2 Position) { this.texture = texture; this.frame = frame; this.position = position;