From: uz Date: Thu, 8 Oct 2009 17:54:23 +0000 (+0000) Subject: Fixed a bug: Attribute numbers were not correctly read. X-Git-Tag: V2.13.1~172 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1122ddb05aef4161877d6e8da702aa05baaef4de;p=cc65 Fixed a bug: Attribute numbers were not correctly read. git-svn-id: svn://svn.cc65.org/cc65/trunk@4350 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/sim65/cfgdata.c b/src/sim65/cfgdata.c index fc1d428bd..5c33ea2a7 100644 --- a/src/sim65/cfgdata.c +++ b/src/sim65/cfgdata.c @@ -217,7 +217,7 @@ int CfgDataGetNum (Collection* Attributes, const char* Name, long* Val) * true. If not found, return false. */ { - CfgData* D = CfgDataGetTyped (Attributes, Name, CfgDataString); + CfgData* D = CfgDataGetTyped (Attributes, Name, CfgDataNumber); if (D == 0) { /* Not found or wrong type */ return 0;