From 779fd068b6aadef909aefdd25d6ec4086300dde2 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 6 Aug 2024 10:32:26 -0400 Subject: easier initializaton --- include/components/solid.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/components/solid.hpp') diff --git a/include/components/solid.hpp b/include/components/solid.hpp index d02d229..87d18e3 100644 --- a/include/components/solid.hpp +++ b/include/components/solid.hpp @@ -6,11 +6,12 @@ #include #include +#include class Solid { public: - Solid(const char *path) { - bitmap = sdl2LoadSolid(path); + Solid(std::string path) { + bitmap = sdl2LoadSolid(path.c_str()); } ~Solid() { -- cgit v1.2.3