Try to build fix

This commit is contained in:
sum2012 committed 2022-10-05 06:22:40 +08:00
1 parent af93a7185b
commit 09e9488de8
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -56,10 +56,11 @@ GameScreen::~GameScreen() {
}
}
std::string int2hexstr(const int a) {
const char* int2hexstr(const int a) {
std::stringstream stream;
stream << std::hex << a;
return stream.str();
auto s = stream.str();
return s.c_str();
}
void GameScreen::update() {
+1 -1
View File
@@ -29,7 +29,7 @@
// Uses GameInfoCache heavily to implement the functionality.
// Should possibly merge this with the PauseScreen.
std::string int2hexstr(const int a);
const char* int2hexstr(const int a);
class GameScreen : public UIDialogScreenWithGameBackground {
public: