aboutsummaryrefslogtreecommitdiffstats
path: root/include/components/solid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/components/solid.hpp')
-rw-r--r--include/components/solid.hpp5
1 files changed, 3 insertions, 2 deletions
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 <algorithm>
#include <cstdint>
+#include <string>
class Solid {
public:
- Solid(const char *path) {
- bitmap = sdl2LoadSolid(path);
+ Solid(std::string path) {
+ bitmap = sdl2LoadSolid(path.c_str());
}
~Solid() {