Replace setblockcolour() argument with const char*

There's no reason it needs to be an std::string here.

Although, realistically, we should be using an enum instead of
string-typing, but, eh, that can be fixed later.
This commit is contained in:
Misa
2021-09-11 23:15:34 -07:00
parent 2991b2341a
commit a10342f5e6
3 changed files with 14 additions and 12 deletions

View File

@@ -1078,7 +1078,7 @@ void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*=
if (customactivitycolour != "")
{
block.setblockcolour(customactivitycolour);
block.setblockcolour(customactivitycolour.c_str());
customactivitycolour = "";
}