Commit b89e16fb authored by Filip Homolka's avatar Filip Homolka

Duke3D/CON: fix for disallowing digits at the start of var labels

parent 2b9da706
......@@ -2624,6 +2624,8 @@ DO_DEFSTATE:
// flags are used to define usage
// (see top of this files for flags)
//Skip comments before calling the check in order to align the textptr onto the label
C_SkipComments();
if (EDUKE32_PREDICT_FALSE(isdigit(*textptr) || (*textptr == '-')))
{
g_errorCnt++;
......@@ -2673,6 +2675,8 @@ DO_DEFSTATE:
case CON_GAMEARRAY:
{
//Skip comments before calling the check in order to align the textptr onto the label
C_SkipComments();
if (EDUKE32_PREDICT_FALSE(isdigit(*textptr) || (*textptr == '-')))
{
g_errorCnt++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment