1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 08:23:51 +00:00

fixed fileparser bug (empty line before the initial begin statement were not handled correctly

This commit is contained in:
Marc Zinnschlag 2010-07-09 18:21:16 +02:00
parent 592fa84e2d
commit 5a1dd4fedd

View file

@ -75,6 +75,12 @@ namespace Compiler
{ {
if (code==Scanner::S_newline) if (code==Scanner::S_newline)
{ {
if (mState==BeginState)
{
// ignore empty lines
return true;
}
if (mState==BeginCompleteState) if (mState==BeginCompleteState)
{ {
// parse the script body // parse the script body