Get the QUAKED text for nullclass right.

? is not a character that's lexed out by the script class.
This fixes the segfault when loading a map when no entities are defined
(ie, the mod's source code could not be found for QUAKED).
This commit is contained in:
Bill Currie 2010-12-26 19:06:39 +09:00
parent 70783e4bd5
commit 232c67640c

View file

@ -247,7 +247,7 @@ id entity_classes_i;
entity_classes_i = self; entity_classes_i = self;
nullclass = [[EntityClass alloc] nullclass = [[EntityClass alloc]
initFromText: "/*QUAKED UNKNOWN_CLASS (0 0.5 0) ?*/" initFromText: "/*QUAKED UNKNOWN_CLASS (0 0.5 0) ? */"
source: va ("%s:%d", __FILE__, __LINE__ - 1)]; source: va ("%s:%d", __FILE__, __LINE__ - 1)];
return self; return self;