Fix an error when setting number of buildings.
Fix an error when setting number of buildings.

smrealms/smr,Curufir/smr,Curufir/smr,hemberger/smr,smrealms/smr,gamedevforks/smr,smrealms/smrv2.0,gamedevforks/smr,gamedevforks/smr,smrealms/smr,tmaus/smr,tmaus/smr,hemberger/smr,smrealms/smrv2.0,hemberger/smr,gamedevforks/smr,Curufir/smr,smrealms/smrv2.0,smrealms/smrv2.0,hemberger/smr