[Discuss] It is time to remove fo.invalid_object from pyhton

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
Vezzra
Release Manager, Design
Posts: 6095
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: [Discuss] It is time to remove fo.invalid_object from py

#16 Post by Vezzra »

Cjkjvfnby wrote:For example: what will happend in starsytems.generate_systems if generate_system return invalid_object? Error in fo.sys_get_num_orbits(system)?
You're right, that's an oversight. The return value is now checked and the script tries to continue accordingly.

Post Reply