Fixed a bug: Attribute numbers were not correctly read.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4350 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -217,7 +217,7 @@ int CfgDataGetNum (Collection* Attributes, const char* Name, long* Val)
|
|||||||
* true. If not found, return false.
|
* true. If not found, return false.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
CfgData* D = CfgDataGetTyped (Attributes, Name, CfgDataString);
|
CfgData* D = CfgDataGetTyped (Attributes, Name, CfgDataNumber);
|
||||||
if (D == 0) {
|
if (D == 0) {
|
||||||
/* Not found or wrong type */
|
/* Not found or wrong type */
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user