Skip to content

Commit

Permalink
Fixed bug in the DED reader which failed to read the iparams of XG Li…
Browse files Browse the repository at this point in the history
…ne Type definitions correctly due to the flag prefix name strings (part of the game-side xgClassLinks array) being defined as zero-length strings rather than NULL ptrs.
  • Loading branch information
danij committed Oct 18, 2008
1 parent edc0505 commit 63aabac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/engine/portable/src/def_read.c
Expand Up @@ -114,7 +114,8 @@
#define RV_END { SetError2("Unknown label.", label); retval = false; goto ded_end_read; }

#define RV_XGIPARM(lab, S, I, IP) if(ISLABEL(lab)) { \
if(xgClassLinks[l->lineClass].iparm[IP].flagPrefix) { \
if(xgClassLinks[l->lineClass].iparm[IP].flagPrefix && \
xgClassLinks[l->lineClass].iparm[IP].flagPrefix[0]) { \
if(!ReadFlags(&I, xgClassLinks[l->lineClass].iparm[IP].flagPrefix)) { \
FAILURE } } \
else { if(!ReadString(S,sizeof(S))) { \
Expand Down

0 comments on commit 63aabac

Please sign in to comment.