This commit is contained in:
Kirill Saidov 2021-09-10 11:12:37 +06:00
parent 86be86c7c7
commit 3e199af353
1 changed files with 1 additions and 1 deletions
lesson#26 - Drawing a player/ourGame/source/game

View File

@ -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;