Advertisement
Guest User

niecza serialize patch

a guest
Jun 13th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. diff --git a/lib/Serialize.cs b/lib/Serialize.cs
  2. index 42b7639..06770f5 100644
  3. --- a/lib/Serialize.cs
  4. +++ b/lib/Serialize.cs
  5. @@ -127,10 +127,14 @@ namespace Niecza.Serialization {
  6. byref[items[or.id]] = or;
  7. }
  8.  
  9. + public SerUnit LoadUnit(string name) {
  10. + return LoadUnit(name, false);
  11. + }
  12. +
  13. // Loads a single unit from the compiled-data directory.
  14. // Will throw a ThawException if a stale reference is encountered
  15. // or other data format error.
  16. - public SerUnit LoadUnit(string name, bool fake = false) {
  17. + public SerUnit LoadUnit(string name, bool fake) {
  18. SerUnit su;
  19.  
  20. // is the unit already loaded?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement