5E Character Create Playlist
  1. #1

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096

    Crash Bug in StringManager.evalDiceMathExpression

    While testing edge cases in my extension, I discovered that if you call StringManager.evalDiceMathExpression as follows that FG will fatally crash:

    Code:
    ocal sTest="1";
    local nResult=StringManager.evalDiceMathExpression(sTest);
    Easy to prevent with:

    Code:
    local nResult;
    if StringManager.isNumberString(sTest) then
        nResult=tonumber(sTest);
    else
        nResult=StringManager.evalDiceMathExpression(sTest);
    end

  2. #2
    Thanks for reporting. I've marked this one to address in the next version.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in