mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-03 17:12:06 +00:00
UDBScript: fixed a problem where the UDB.log() method crashed when a non-string object was passed to it
This commit is contained in:
parent
92fefb766a
commit
8992b66df5
1 changed files with 5 additions and 2 deletions
|
@ -259,9 +259,12 @@ namespace CodeImp.DoomBuilder.UDBScript.Wrapper
|
|||
/// Adds a line to the script log. Also shows the script running dialog.
|
||||
/// </summary>
|
||||
/// <param name="text">Line to add to the script log</param>
|
||||
public void log(string text)
|
||||
public void log(object text)
|
||||
{
|
||||
logger.Report(text);
|
||||
if (text == null)
|
||||
return;
|
||||
|
||||
logger.Report(text.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue