Commit 6862a040 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

forgot to return something -.-

parent 488d41fa
......@@ -62,7 +62,7 @@ namespace gdw {
}
text_widget* credits_state::generateHeader(std::string text) {
this->rootElement->add_widget<text_widget>(
return (text_widget*) this->rootElement->add_widget<text_widget>(
25/100.f,
this->topMargin,
100/100.f,100/100.f,
......@@ -74,7 +74,7 @@ namespace gdw {
}
text_widget* credits_state::generateText(std::string text) {
this->rootElement->add_widget<text_widget>(
return (text_widget*) this->rootElement->add_widget<text_widget>(
25/100.f,
this->topMargin,
100/100.f,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment