Prevent undefined behaviour
This commit is contained in:
parent
ac51e2b495
commit
e204e8069e
1 changed files with 1 additions and 1 deletions
|
@ -1991,7 +1991,7 @@ WML_HANDLER_FUNCTION(print, /*event_info*/, cfg)
|
|||
font::remove_floating_label(floating_label);
|
||||
|
||||
// Display a message on-screen
|
||||
const std::string& text = cfg["text"];
|
||||
std::string text = cfg["text"];
|
||||
if(text.empty())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue